CTAN Comprehensive TeX Archive Network

extractpdfmark – Extract page mode and named destinations as PDFmark from PDF

PDF­marks is a tech­nique that ac­com­pa­nies PDF and that is used to store meta­data such as au­thor or ti­tle, but also struc­tural in­for­ma­tion such as book­marks or hy­per­links.

When Ghostscript reads the main PDF gen­er­ated by the sys­tem with em­bed­ded PDF files and out­puts the fi­nal PDF, the PDF page mode and name tar­gets etc. are not pre­served. There­fore, when you open the fi­nal PDF, it is not dis­played cor­rectly. Also, re­mote PDF links do not work cor­rectly.

This pro­gram is able to ex­tract the page mode and named tar­gets as PDF­mark from PDF. In this way, you can ob­tain em­bed­ded PDF files that have kept this in­for­ma­tion.


$ extractpdfmark -System-Outputted.pdf > Extracted-PDFmark.ps

$ gs -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dPDFDontUseFontObjectNum -sOutputFile=Final.pdf -System-Outputted.pdf Extracted-PDFmark.ps

Li­censesGNU Gen­eral Public Li­cense, ver­sion 3
Copy­right2016–2018 Masamichi Hosoda
Main­tainerMasamichi Hosoda
TopicsPDF fea­tures

Down­load the con­tents of this pack­age in one zip archive (399.4k).

Com­mu­nity Com­ments



Here you can see a re­spec­tive di­a­gram in newer browsers.


Pack­age Links

Guest Book Sitemap Contact Contact Author