This file contains hidden or 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
| // Merge all attributes of multiple PDF files (pdf-full-merge.js) | |
| // Extended from MuPDF's docs/examples/pdf-merge.js | |
| // Ever had problems with tools that don't copy certain attributes of a PDF? | |
| // This script uses MuPDF to merge/join/concatenate as much as possible, including: | |
| // - bookmarks / outlines / table of contents | |
| // - link attributes of said outlines, such as viewrect and zoom | |
| // - whether outlines appear open or closed by default | |
| // - annotations, including links | |
| // - 3d objects / PDF3D |