RE: PDF printing issues

2010-12-21 Thread Mark A. Kruger

Well that make's sense I suppose... I'll add that to my list of ideas :)

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Tim Do [mailto:t...@wng.com] 
Sent: Tuesday, December 21, 2010 8:55 AM
To: cf-talk
Subject: RE: PDF printing issues


Thanks Mark... I used a couple of your suggestions to speed it up a bit.
But the moment that I set the dpi from 600 to 300, bam! Pages printed
beautifully.



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Monday, December 20, 2010 12:50 PM
To: cf-talk
Subject: RE: PDF printing issues


Tim,

There are many tips and tricks to optimizing your pdf generation. Most of
them boil down to removing or streamlining the external resources needed.
So, for example, if you use an exteneral CSS file, cfdocument has to...

-Resolve the URL to the css file
-"get" the CSS file via cfhttp 
-"render" the css into whatever is needed for pdf formatting using the
rendering engine
-Include the info in-line in the file.

Multiply that times all images and external resources needed to produce the
single file (unlike HTML everything must be "in" the file). If your PDF
takes, say 25 images - that is 25 CF Threads to call those images etc.

There are some ways around it and my blog has a lot of great documentation
on this subject.

http://www.coldfusionmuse.com

Do a search for "cfdocument" and you'll get 4 or 5 articles and some
tangential ones as well.

-Mark

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Tim Do [mailto:t...@wng.com] 
Sent: Monday, December 20, 2010 2:05 PM
To: cf-talk
Subject: PDF printing issues


We're having a bit (HUGE) of a problem printing PDFs created by using
cfdocument.  We just updated our PDF generator to us CF instead of html2pdf.
We are having many users complain that it takes 20-30 minutes to print out
PDFs (20-25pgs).  The file size itself is about 1mb so file size isn't the
problem, although I did notice that the file size balloons up when in the
queue, but I read its normal since PDF is compressed.  It works on certain
printers but not others, same make/model printers as well.  We tried
updating printer drivers on them but it would work on some but not all.
Some of the printers are relatively new with newer drivers.

So my question is.. is this a printer driver issue or is this an issue w/
how the PDFs are generated??  Anybody else having problems printer larger
PDFs generated with cfdocument/cfpdf?

Thanks,
Tim










~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340188
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: PDF printing issues

2010-12-21 Thread Tim Do

Thanks Mark... I used a couple of your suggestions to speed it up a bit.  But 
the moment that I set the dpi from 600 to 300, bam! Pages printed beautifully.



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Monday, December 20, 2010 12:50 PM
To: cf-talk
Subject: RE: PDF printing issues


Tim,

There are many tips and tricks to optimizing your pdf generation. Most of
them boil down to removing or streamlining the external resources needed.
So, for example, if you use an exteneral CSS file, cfdocument has to...

-Resolve the URL to the css file
-"get" the CSS file via cfhttp 
-"render" the css into whatever is needed for pdf formatting using the
rendering engine
-Include the info in-line in the file.

Multiply that times all images and external resources needed to produce the
single file (unlike HTML everything must be "in" the file). If your PDF
takes, say 25 images - that is 25 CF Threads to call those images etc.

There are some ways around it and my blog has a lot of great documentation
on this subject.

http://www.coldfusionmuse.com

Do a search for "cfdocument" and you'll get 4 or 5 articles and some
tangential ones as well.

-Mark

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Tim Do [mailto:t...@wng.com] 
Sent: Monday, December 20, 2010 2:05 PM
To: cf-talk
Subject: PDF printing issues


We're having a bit (HUGE) of a problem printing PDFs created by using
cfdocument.  We just updated our PDF generator to us CF instead of html2pdf.
We are having many users complain that it takes 20-30 minutes to print out
PDFs (20-25pgs).  The file size itself is about 1mb so file size isn't the
problem, although I did notice that the file size balloons up when in the
queue, but I read its normal since PDF is compressed.  It works on certain
printers but not others, same make/model printers as well.  We tried
updating printer drivers on them but it would work on some but not all.
Some of the printers are relatively new with newer drivers.

So my question is.. is this a printer driver issue or is this an issue w/
how the PDFs are generated??  Anybody else having problems printer larger
PDFs generated with cfdocument/cfpdf?

Thanks,
Tim








~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340187
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: PDF printing issues

2010-12-20 Thread Mark A. Kruger

Tim,

There are many tips and tricks to optimizing your pdf generation. Most of
them boil down to removing or streamlining the external resources needed.
So, for example, if you use an exteneral CSS file, cfdocument has to...

-Resolve the URL to the css file
-"get" the CSS file via cfhttp 
-"render" the css into whatever is needed for pdf formatting using the
rendering engine
-Include the info in-line in the file.

Multiply that times all images and external resources needed to produce the
single file (unlike HTML everything must be "in" the file). If your PDF
takes, say 25 images - that is 25 CF Threads to call those images etc.

There are some ways around it and my blog has a lot of great documentation
on this subject.

http://www.coldfusionmuse.com

Do a search for "cfdocument" and you'll get 4 or 5 articles and some
tangential ones as well.

-Mark

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Tim Do [mailto:t...@wng.com] 
Sent: Monday, December 20, 2010 2:05 PM
To: cf-talk
Subject: PDF printing issues


We're having a bit (HUGE) of a problem printing PDFs created by using
cfdocument.  We just updated our PDF generator to us CF instead of html2pdf.
We are having many users complain that it takes 20-30 minutes to print out
PDFs (20-25pgs).  The file size itself is about 1mb so file size isn't the
problem, although I did notice that the file size balloons up when in the
queue, but I read its normal since PDF is compressed.  It works on certain
printers but not others, same make/model printers as well.  We tried
updating printer drivers on them but it would work on some but not all.
Some of the printers are relatively new with newer drivers.

So my question is.. is this a printer driver issue or is this an issue w/
how the PDFs are generated??  Anybody else having problems printer larger
PDFs generated with cfdocument/cfpdf?

Thanks,
Tim






~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340176
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm