-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the ability to generate outlines for PDFs
--outline-tags allows to specify the HTML tags which should be considered for the outline. The tags are expected to be given in order of hierachy, for example, 'h1,h2' will trigger a generation with h1 elements as top level outline entries and h2 as their childs. Ideally this would not be required if Chromium would add this directly. So if these bugs are closed this can probably be removed again: - https://bugs.chromium.org/p/chromium/issues/detail?id=840455 - puppeteer/puppeteer#1778 This code is heavily based on @Hopding's comment at: Hopding/pdf-lib#127 (comment)
- Loading branch information
Erik Schilling
committed
Aug 1, 2019
1 parent
2e995af
commit df0d10b
Showing
4 changed files
with
154 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters