Linearization Example?

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for Java (v4)  /  Linearization Example?

DynamicPDF Generator for Java (v4) Forum

 Dec 05 2007 4:43 PM
Hi,
I'm creating a linearized version of a PDF. I've set the pdfFormat to PdfFormat.LINEARIZED and everything seems to be OK. I'm then opening the file and writing the contents to the output stream. My problem (or confusion) is that I don't see the image indicating the document is building.
It occurred to me that I may be doing it wrong. Should the build PDF file be in the web server's doc root, and served directed from the web server? Is there an example on how this should be handled?

Thanks.

-Lonnie
 Dec 05 2007 6:43 PM
Posted by a ceTe Software moderator
Remember that in order to see the benefits of a linearized (fast web view) PDF document that document needs to first be stored to a file system first (not streamed directly to the browser using DrawToWeb).  Make sure you are first using the Draw method to see this.

For more detailed information on linearization (and single pass documents) take a look at the help docs on this, http://www.DynamicPDF.com/Support/NET_Help_Library_07_03/Linearization.html.

If you have further questions or if that did not answer everything please let us know.

Thanks,
ceTe Software Support Team
 Dec 05 2007 8:00 PM
I am now writing the PDF to the file system, in the doc root and then serving using the web server. It comes up fine, but I still don't see the progress meter.

From the PDF Reference doc:

"Linearized PDF requires two additions to the PDF specification:
•Rules for the ordering of objects in the PDF file
•Additional data structures, called hint tables, that enable efficient navigation within the document"

Do I need to do this? If so, how? I don't see a reference to this anywhere.

Thanks.
 Dec 06 2007 8:33 AM
Posted by a ceTe Software moderator
Hello,

The use of linearization will not show the progress bar or anything of that sort in the browser window. It will open the PDF in the browser as soon as the first page is loaded in memory and then continue loading subsequent pages. This way the user does not have to keep waiting for larger PDF documents to be loaded.

When setting the Linearized property, our product internally sets all the necessary paramters to make the PDF document Linearized.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 12:37 AM.