Fastest serve of generated PDF file....
Posted on 2007-11-16
I am generating a PDF file using the FPDF library and FPDF2File also to help memory issue and generation speed. I have the 24MB average file down to 20 second to make and serve to users browser.
To increase perceived d'load speed I thought to output header at script begining to give browser time to load plugin while waiting for document though it seems as if it wants to actually start receiving the document to load reader plugin into IE or FF.
What I would like to know if it is possible, practical or wise to try to serve the document as it is being generated to disk, or is it possible to serve a file without knowing the final end size of the document. And, as the preview document is deleted right after serve then can it be done without corrupting document.
All code or knowledge on how to squeeze all speed out of this process possible appreciated.
Thank you for your time.