Faster PDF Generation

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Faster PDF Generation

Post by icesolid »

I currently use FPDF for generating PDF's on the fly. It creates the PDF instantly and its great! As soon as the user clicks on the button I provide, the "Open / Download" dialog comes right up instantly and the file is ready to be opened or downloaded.

The problem is 50% of the time that the user clicks on the "Open" or "Download" button, the opening or downloading process takes forever. The other 50% of the time is works pretty well, not great.

I have tried this on multiple different internet connections and different PCs, it is still the same 50/50 result.

Is there anyway to speed up that opening and downloading process? Or make it more stable at least?
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

Re: Faster PDF Generation

Post by it2051229 »

FPDF are recommended only for light weight documents since the generation of the PDF is only processed when the user requests to do so with a CLICK on the link but remember the processing has limit and normally it would take 30 seconds. How big are the documents to be processed to PDF?
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Re: Faster PDF Generation

Post by icesolid »

Average is 2.5 MB
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

Re: Faster PDF Generation

Post by it2051229 »

I use FPDF too and never tried 2.5 mb, how about asking this on there foruM?
Post Reply