CTAN Comprehensive TeX Archive Network

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

When you cre­ate a PDF doc­u­ment us­ing a sys­tem you may in­clude many small PDF files in the main PDF file. It is com­mon for each of the small PDF files to use the same fonts.

If the small PDF files con­tain em­bed­ded font sub­sets, the sys­tem in­cludes them as-is in the main PDF. As a re­sult, sev­eral sub­sets of the same font are em­bed­ded in the main PDF. It is not pos­si­ble to re­move the du­pli­cates since they are dif­fer­ent sub­sets. This vastly in­creases the size of the main PDF file.

On the other hand, if the small PDF files con­tain em­bed­ded full font sets, the sys­tem also in­cludes all of them in the main PDF. This time, the main PDF con­tains du­pli­cates of the same full sets of fonts. There­fore, Ghostscript can re­move the du­pli­cates. This may con­sid­er­ably re­duce the main PDF-file's size.

Fi­nally, if the small PDF files con­tain some fonts that are not em­bed­ded, the sys­tem out­puts the main PDF file with some fonts miss­ing. In this case, Ghostscript can em­bed the nec­es­sary fonts. It can sig­nif­i­cantly re­duce the re­quired disk size.

Either way, when Ghostscript reads the main PDF pro­duced by the sys­tem and out­puts the fi­nal PDF it does not pre­serve PDF page-mode and named-des­ti­na­tions etc. As a re­sult, when you open the fi­nal PDF, it is not dis­played cor­rectly. Also, re­mote PDF links will not work.

This pro­gram is able to ex­tract page mode and named des­ti­na­tions as PDF­mark from PDF. By us­ing this you can get the small PDF files that have pre­served them.

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

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

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