percollate
percollate copied to clipboard
TOC with multiple levels
It would be great to have an option to feed not just a plain list of URLs, but a tabbed, spaced, or somehow formatted (see below) file with captions and URLs to form a multilevel TOC in a resulting PDF.
A sample of such an input file:
<h1><a href="http://url1.com">Level 1 caption</a></h1>
<h2><a href="http://url11.com">Level 1-1 caption</a></h2>
<h3><a href="http://url111.com">Level 1-1-1 caption</a></h3>
<h3><a href="http://url112.com">Level 1-1-2 caption</a></h3>
<h2><a href="http://url12.com">Level 1-2 caption</a></h2>
<h3><a href="http://url121.com">Level 1-2-1 caption</a></h3>
<h3><a href="http://url122.com">Level 1-2-2 caption</a></h3>
Sounds neat! I wonder if this is something we'd rather do with the Programmatic API (#4) rather than the CLI directly.