logo       

Re: Printing And Really Big PDF's: msg#00263

php.tcphp

Subject: Re: Printing And Really Big PDF's

First thought I had..

"Just because its what they want doesn't mean they can have it"

That being said you could go into the fpdf code and have it buffer to disk somehow. Then once its done close buffer, Then stream that file to the client.

I would also check, does it die at the same point? Maybe it is a php time limit issue?

Richard Thomas - CEO
Cyberlot Technologies Group Inc.
507.398.4124 - Voice



Mark Courtney wrote:

Hey Listers

I'm trying to create a pdf that could potentially contain up to 150+ jpg
images of about 300Kb in size. I've been using fpdf, but it seems to die
when it tries to handle that many images.

http://www.fpdf.org

After digging into the fpdf code, I've found that it creates a buffer
containing the entire pdf, then presents the pdf inline to the browser, as
a local file on the Web server, or returns the binary pdf data to a php
script. This buffer creation seems to be where the script dies - probably
because it take a ton of memory to do this since all 150+ images are in
memory at once.

The environment is IIS on Windows and PHP 5.

The ultimate goal here is to be able to print these 150+ in one print job.
Seems easy enough, right? 8-) I've looked into printing directly from
the Web server too, but that doesn't seem to save any memory.

Can anybody on the list throw a clue at me and/or give me an idea of how
to print a job that can potentially contain 150+ pdf's? I know this whole
thing seems pretty tricky, but this is what the customer wants...

Thanks a ton





Mark Courtney

http://www.MarkCourtney.com

__
+|oo|+
+|oo|+
||
||
||
||
||
||
_ || _
\\_||_//
| [] |
| || |
/ [] \
\______/




---------------------------------------------------------------------
To unsubscribe, e-mail: talk-unsubscribe-4zcLI8jJc/rYtjvyW6yDsg@xxxxxxxxxxxxxxxx

Please read and follow the list guidelines:
http://www.tcphp.org/mailing_list/guidelines

The tcphp.org mailing list is sponsored by pajunas interactive, inc.


---------------------------------------------------------------------
To unsubscribe, e-mail: talk-unsubscribe-4zcLI8jJc/rYtjvyW6yDsg@xxxxxxxxxxxxxxxx

Please read and follow the list guidelines:
http://www.tcphp.org/mailing_list/guidelines

The tcphp.org mailing list is sponsored by pajunas interactive, inc.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise