Tailoring the Output
This chapter explains how to tailor your output to:
- Retain annotations from the original document (removed by default)
- Achieve faster web delivery through linearization
By default, APSplit excludes page annotations from the output files it creates. Annotations include notes, text, audio, stamps, form fields (Widgets), files, pencil marks, rectangles, ellipses, lines, highlights, cross outs (strikethroughs), and underlines.
If you want annotations from the input to appear in the output, use the -keepannots option.
$ apsplit -keepannots -o outPDFFileorDir [other options] inPDFFile [inPDFFile2...]
> apsplit -keepannots -o C:\Appligent\APSplit\output\ C:\Appligent\APSplit\samples\SplitSample.pdf
$ ./apsplit -keepannots -o /Appligent/APSplit/output/ /Appligent/APSplit/samples/SplitSample.pdf
All annotations in SplitSample.pdf are retained in the files extracted to the output directory.
Linearizing for Faster Web Delivery
Linearizing a multipage file reorganizes it for more efficient web delivery. Individual pages can be rendered before the entire document has downloaded, so the user can start reading the document sooner.
To linearize multipage output, use the -w option.
Note: Linearization only works with multipage files. Attempting to linearize a one-page file will result in a larger file with no increase in web service efficiency.
$ apsplit -w -o outPDFFileorDir [other options] inPDFFile [inPDFFile2...]
> apsplit -w -o C:\Appligent\APSplit\output\ -bybookmarks C:\Appligent\APSplit\samples\SplitSample.pdf
$ ./apsplit -w -o /Appligent/APSplit/output/ -bybookmarks /Appligent/APSplit/samples/SplitSample.pdf
APSplit creates one file for each first-level bookmark section. Each output file is linearized for more efficient web service.