PDFmarks is a technique that accompanies PDF and that is used to
store metadata such as author or title, but also structural information
such as bookmarks or hyperlinks.
When Ghostscript reads the main PDF generated by the TEX system
with embedded PDF files and outputs the final PDF, the PDF page
mode and name targets etc. are not preserved. Therefore, when you
open the final PDF, it is not displayed correctly. Also, remote PDF
links do not work correctly.
This program is able to extract the page mode and named targets as
PDFmark from PDF. In this way, you can obtain embedded PDF files
that have kept this information.
Change 15 to the FreeBSD major version you want; the rest keeps your current architecture. The files are saved under ./All/. Copy them to the other machine and install them there with pkg add. Ignore any warning that suggests pkg bootstrap -f. The quarterly or latest branch comes from your own repository configuration, not from this page.
print/extractpdfmark: New port: Extract page mode and named destinations from
PDF
PDFmarks is a technique that accompanies PDF and that is used to
store metadata such as author or title, but also structural information
such as bookmarks or hyperlinks.
When Ghostscript reads the main PDF generated by the TEX system
with embedded PDF files and outputs the final PDF, the PDF page
mode and name targets etc. are not preserved. Therefore, when you
open the final PDF, it is not displayed correctly. Also, remote PDF
links do not work correctly.
This program is able to extract the page mode and named targets as
PDFmark from PDF. In this way, you can obtain embedded PDF files
that have kept this information.
WWW: https://github.com/trueroad/extractpdfmark/