DynamicPDF Generator for Java v10.07 can produce both linearized and single pass (non-linearized) PDFs. This can be specified using the PdfFormat property of the Document object. The advantages and disadvantages of both types of PDFs is discussed below.
Linearized PDF output (fast web view) has a big advantage when PDFs will be created and placed on a web server as a file. The first page of the PDF displays more quickly because the entire PDF does not need to be downloaded before it can be displayed. Pages can also be requested individually as they are needed while navigating through the document. Linearized PDFs are structured for optimized viewing, meaning the reader will have to do less work to display their content.
The main disadvantage for linearized output is that linearized PDFs requires more resources to create and result in slightly larger file sizes. Also, page at a time viewing will only work with static files on a web server and not with streamed (output using the drawToWeb method) PDF documents. This is because web servers handle streamed and static content differently and there is no mechanism in place for the client to request portions of a streamed document from the web server.
Linearized output is preferred when PDFs will be placed on a web server for viewing over the Internet.
Single pass output flushes content to the output stream as quickly as possible. This means that they require less time and fewer resources to create.
The disadvantage to Single pass output is not optimized for viewing and reader may require slightly more resources to display the content.
Single Pass output is preferred when producing PDFs as quickly and with the fewest resources possible are required.