--outline-tags not working

Hi,
I’m using pagedjs-cli version 0.1.6, but I’m having trouble generating outlines with pagedjs-cli. I assume this should produce an outline on the left side of the pdf viewer.

I tried running the command: pagedjs-cli output.html -o testu3.pdf --outline-tags “h1,h2” I also placed --outline-tags at different places of the command and tried not using quotation marks on the headings tags.
I’m testing with this html.

<html>
 <head>
 </head>
 <body>
   <div id="toc">
     <ul>
       <li><a href="#intro">Intro</a></li>
       <li><a href="#install">Install</a></li>
       <li><a href="#usage">Usage</a></li>
       <li><a href="#examples">Examples</a></li>
     </ul>
   </div>
   <div id="content">
     <h1 id="intro">Intro</h1>
     <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat
     </p>
     <h2 id="install">Install</h2>
     <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat
     </p>
     <h2 id="usage">Usage</h2>
     <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat
     </p>
     <h2 id="examples">Examples</h2>
     <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat
     </p>
   </div>
 </body>
</html>

According to info I’ve found elsewhere it should work if I link to titles. Is there something else I should do?

Thanks

Hi there @ericrevollo

sorry for having miss your message.

Pagedjs-cli is being rewritten these day to provide a better handling of everything including outline-tags. We’ll write about in on the website asap.

We’ll have some documentation about that too as soon as possible.