Reversr -no-process-struct-tree
This commit is contained in:
parent
12fd417f98
commit
70827ba607
|
@ -594,7 +594,7 @@ let args =
|
||||||
boxes = false;
|
boxes = false;
|
||||||
encrypt_metadata = true;
|
encrypt_metadata = true;
|
||||||
retain_numbering = false;
|
retain_numbering = false;
|
||||||
process_struct_trees = true;
|
process_struct_trees = false;
|
||||||
remove_duplicate_fonts = false;
|
remove_duplicate_fonts = false;
|
||||||
remove_duplicate_streams = false;
|
remove_duplicate_streams = false;
|
||||||
encoding = Cpdfmetadata.Stripped;
|
encoding = Cpdfmetadata.Stripped;
|
||||||
|
@ -733,7 +733,7 @@ let reset_arguments () =
|
||||||
args.boxes <- false;
|
args.boxes <- false;
|
||||||
args.encrypt_metadata <- true;
|
args.encrypt_metadata <- true;
|
||||||
args.retain_numbering <- false;
|
args.retain_numbering <- false;
|
||||||
args.process_struct_trees <- true;
|
args.process_struct_trees <- false;
|
||||||
args.remove_duplicate_fonts <- false;
|
args.remove_duplicate_fonts <- false;
|
||||||
args.remove_duplicate_streams <- false;
|
args.remove_duplicate_streams <- false;
|
||||||
args.encoding <- Cpdfmetadata.Stripped;
|
args.encoding <- Cpdfmetadata.Stripped;
|
||||||
|
@ -1975,9 +1975,9 @@ and specs =
|
||||||
("-merge-add-bookmarks-use-titles",
|
("-merge-add-bookmarks-use-titles",
|
||||||
Arg.Unit setmergeaddbookmarksusetitles,
|
Arg.Unit setmergeaddbookmarksusetitles,
|
||||||
" Use title of document rather than filename");
|
" Use title of document rather than filename");
|
||||||
("-no-process-struct-trees",
|
("-process-struct-trees",
|
||||||
Arg.Unit (fun () -> args.process_struct_trees <- false),
|
Arg.Unit (fun () -> args.process_struct_trees <- true),
|
||||||
" Do not process structure trees");
|
" Process structure trees");
|
||||||
("-remove-duplicate-fonts",
|
("-remove-duplicate-fonts",
|
||||||
Arg.Unit set_remove_duplicate_fonts,
|
Arg.Unit set_remove_duplicate_fonts,
|
||||||
" Remove duplicate fonts when merging");
|
" Remove duplicate fonts when merging");
|
||||||
|
|
BIN
cpdfmanual.pdf
BIN
cpdfmanual.pdf
Binary file not shown.
|
@ -1206,20 +1206,22 @@ In modern usage, \texttt{-utf8} is almost always the sensible option. But for hi
|
||||||
cpdf -merge in1.pdf [<range>] in2.pdf [<range>] [<more names/ranges>]
|
cpdf -merge in1.pdf [<range>] in2.pdf [<range>] [<more names/ranges>]
|
||||||
[-collate] [-retain-numbering] [-remove-duplicate-fonts]
|
[-collate] [-retain-numbering] [-remove-duplicate-fonts]
|
||||||
[-merge-add-bookmarks [-merge-add-bookmarks-use-titles]]
|
[-merge-add-bookmarks [-merge-add-bookmarks-use-titles]]
|
||||||
[-no-process-struct-trees]
|
[-process-struct-trees]
|
||||||
-o out.pdf\end{verbatim}
|
-o out.pdf\end{verbatim}
|
||||||
|
|
||||||
\vspace{1.5mm}
|
\vspace{1.5mm}
|
||||||
\noindent\verb!cpdf -split in.pdf -o <format> [-chunk <chunksize>]!
|
\noindent\verb!cpdf -split in.pdf [-chunk <chunksize>] [-process-struct-trees]!\\
|
||||||
|
\noindent\verb! -o <format>!
|
||||||
|
|
||||||
\vspace{1.5mm}
|
\vspace{1.5mm}
|
||||||
\noindent\verb!cpdf -split-bookmarks <level> in.pdf [-utf8] -o <format>!
|
\noindent\verb!cpdf -split-bookmarks <level> in.pdf [-utf8] [-process-struct-trees]!\\
|
||||||
|
\noindent\verb! -o <format>!
|
||||||
|
|
||||||
\vspace{1.5mm}
|
\vspace{1.5mm}
|
||||||
\noindent\verb!cpdf -split-max <file size> in.pdf -o <format>!
|
\noindent\verb!cpdf -split-max <file size> in.pdf [-process-struct-trees] -o <format>!
|
||||||
|
|
||||||
\vspace{1.5mm}
|
\vspace{1.5mm}
|
||||||
\noindent\verb!cpdf -spray in.pdf -o a.pdf [-o b.pdf [-o ...]]!
|
\noindent\verb!cpdf -spray in.pdf [-process-struct-trees] -o a.pdf [-o b.pdf [-o ...]]!
|
||||||
\end{framed}
|
\end{framed}
|
||||||
|
|
||||||
\vspace{12mm}
|
\vspace{12mm}
|
||||||
|
@ -1259,7 +1261,7 @@ of the inputs only appear once in the output.
|
||||||
|
|
||||||
The \texttt{-merge-add-bookmarks} option adds a top-level bookmark for each file, using the filename. Any existing bookmarks are retained. The \texttt{-merge\--add\--bookmarks\--use\--titles}, when used in conjunction with \texttt{-merge-add-bookmarks}, will use the title from each PDF's metadata instead of the filename.
|
The \texttt{-merge-add-bookmarks} option adds a top-level bookmark for each file, using the filename. Any existing bookmarks are retained. The \texttt{-merge\--add\--bookmarks\--use\--titles}, when used in conjunction with \texttt{-merge-add-bookmarks}, will use the title from each PDF's metadata instead of the filename.
|
||||||
|
|
||||||
The \texttt{-no-process-struct-tree} option prevents processing of structure trees. Instead of merging them, they are simply copied across wholesale. This can be useful with \texttt{-collate} which can presently cause an increased size. Or, to simply save time when a merged structure tree is not required.
|
The \texttt{-process-struct-trees} option will merge structure trees. Without this option, instead of merging them, they are simply copied across wholesale.
|
||||||
|
|
||||||
\section{Splitting}
|
\section{Splitting}
|
||||||
\index{splitting}
|
\index{splitting}
|
||||||
|
|
Loading…
Reference in New Issue