ColdFusion 9.0 Resources |
Linearizing PDF documents for faster web displayFor efficient access of PDF files over the web, linearize PDF documents. A linearized PDF file is structured in a way that displays the first page of the PDF file in the browser before the entire file is downloaded from the web server. As a result linear PDF documents open almost instantly. To linearize PDF documents, specify the saveOption attribute of the write action. The following example saves the output file in linear format: <cfpdf action="write" saveOption="linear" source="myBook.pdf" destination="fastBook.pdf" overwrite="yes"> Note: Linearization can decrease performance when
handling large documents.
|