1EXTRACTPDFMARK(1)           General Commands Manual          EXTRACTPDFMARK(1)
2
3
4

NAME

6       extractpdfmark  -  Extract  page mode and named destinations as PDFmark
7       from PDF
8

SYNOPSIS

10       extractpdfmark file.pdf > file.ps
11

DESCRIPTION

13       This manual page documents briefly the extractpdfmark command.
14
15       When you create a PDF document using a TeX system, you may include many
16       small  PDF  files in the main PDF file.  It is common for each of those
17       files to use the same fonts.
18
19       If the small PDF files contain embedded font subsets,  the  TeX  system
20       includes  them  as-is in the main PDF.  As a result, several subsets of
21       the same font are embedded in the main PDF.   It  is  not  possible  to
22       remove  the  duplicates  since they are different subsets.  This vastly
23       increases the size of the main PDF file.
24
25       On the other hand, if the small PDF files contain  embedded  full  font
26       sets,  the  TeX system also includes all of them in the main PDF.  This
27       time, the main PDF contains duplicates of the same full sets of  fonts.
28       Therefore,  Ghostscript  can remove the duplicates.  This may consider‐
29       ably reduce the main PDF-file's size.
30
31       Finally, if the small PDF files contain some fonts that are not  embed‐
32       ded,  the TeX system outputs the main PDF file with some fonts missing.
33       In this case, Ghostscript can embed the necessary fonts.  It  can  sig‐
34       nificantly reduce the required disk size.
35
36       Either  way,  when  Ghostscript  reads the main PDF produced by the TeX
37       system and outputs the final PDF it does not preserve PDF page-mode and
38       named-destinations  etc.   As a result, when you open the final PDF, it
39       is not displayed correctly.  Also, remote PDF links will not work.
40
41       This program is able to extract page mode  and  named  destinations  as
42       PDFmark  from  PDF.  By using this you can get the small PDF files that
43       have preserved them.
44

EXAMPLE

46              $ extractpdfmark TeX-System-Outputted.pdf > Extracted-PDFmark.ps
47              $  gs   -q   -dBATCH   -dNOPAUSE   -sDEVICE=pdfwrite   -sOutput‐
48              File=Final.pdf TeX-System-Outputted.pdf Extracted-PDFmark.ps
49
50
51
52                               December 11, 2016             EXTRACTPDFMARK(1)
Impressum