Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
StokeyTCI #1
Cfdocument Speed issues
My marketing department wants the ability for newspapers, and customers to be
able to create there own adds. So I created everything with coldfusion, works
great cept the last step, generating the PDF, it works, only it takes about 10
minutes to load the PDF. Since this is my first time using cfdocument, im
hoping im just doing something stupid. Here is an example of my code.
<cfdocument format='pdf' backgroundvisible='yes' > <table border='0'
cellpadding='0' cellspacing='0' width='2400' bgcolor='d1d3d4'> <tr > <td
height='75' colspan='5' width='2400' ></td> </tr> <tr > <td
width='75' >&nbsp;</td> <td height='180' colspan='3' width='2250'
background='images/dealernamebar.gif'>&nbsp;</td> <td
width='75'>&nbsp;</td> </tr> <tr > <td width='75'>&nbsp;</td>
<td height='360' colspan='3' width='2250'
background='images/Page/Bottomsignature.gif' >&nbsp;</td> <td
width='75'>&nbsp;</td> </tr> <tr > <td width='75'>&nbsp;</td>
<td height='220' colspan='3' width='2250' ></td> <td
width='75'>&nbsp;</td> </tr> <tr> <td height='20'>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> </tr> <tr> <td height='540'
width='75'>&nbsp;</td> <td width='1110'
background='images/brand/4X4SYNCHRONE.jpg'><img
src='images/brand/4X4SYNCHRONE.jpg'></td> <td width='30'>&nbsp;</td>
<td width='1110' background='images/brand/4X4SYNCHRONE.jpg'><img
src='images/brand/4X4SYNCHRONE.jpg'></td> <td width='75'>&nbsp;</td>
</tr> <tr> <td height='20'>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr>
<tr> <td height='540' width='75'>&nbsp;</td> <td width='1110'
background='images/brand/4X4SYNCHRONE.jpg'><img
src='images/brand/4X4SYNCHRONE.jpg'></td> <td width='30'>&nbsp;</td>
<td width='1110' background='images/brand/4X4SYNCHRONE.jpg'><img
src='images/brand/4X4SYNCHRONE.jpg'></td> <td width='75'>&nbsp;</td>
</tr> <tr> <td height='20'>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr>
<tr> <td height='540' width='75'>&nbsp;</td> <td width='1110'
background='images/brand/4X4SYNCHRONE.jpg'><img
src='images/brand/4X4SYNCHRONE.jpg'></td> <td width='30'>&nbsp;</td>
<td width='1110' background='images/brand/4X4SYNCHRONE.jpg'><img
src='images/brand/4X4SYNCHRONE.jpg'></td> <td width='75'>&nbsp;</td>
</tr> </table> </cfdocument>
StokeyTCI Guest
-
CFDocument
Hi, I used database to store file name and path to the image file then made a page with cfdocument tag to display them. What I found out is, if... -
cfdocument space issues
I have html that accationally has italics or bold or span tags. When it makes the pdf, it adds a space before or after each tag it finds. What is... -
Horrible Speed issues? Win2k P4 2Ghz Machine
I have to submit a HUGE complaint on the speed of Fireworks MX 2004. It?s absolutely horrible. I am using a P4, 2GHz Windows 2000 system, so I... -
Does Ruby 1.8.0 improve in file I/O speed and pattern match speed?
Hi, rubyists, I'm using ruby 1.6.8 (2002-12-24) and find file I/O too slow. Is ruby 1.8.0 faster? Some one in the list said speed is quite... -
Balancing speed against OO design - optimization issues with PHP/MySQL
Hi all, a request for opinions, please. I am designing a smallish application to manage members of several committees of a particula... -
-
Rupesh Kumar #3
Re: Cfdocument Speed issues
10 mins?? how big is the pdf that you are trying to create? how many images
does it have? I tried the your code snippet and it comes within 1-2 sec.
Whats hapenning at your end? can you take 2-3 thread dumps when the browser
is waiting?
What happens when you don't have cfdocument tag?
"StokeyTCI" <webforumsuser@macromedia.com> wrote in message
news:d1v5v1$fj0$1@forums.macromedia.com...> Just timed it and it took exacatly 10 min.
Rupesh Kumar Guest
-
StokeyTCI #4
Re: Cfdocument Speed issues
Here I set you up a demo if you go to [url]http://www.tirecenters.com/t3/adview.cfm[/url]
at the bottom of the page is a series of stars. The stars take you to a display
of the PDF. I know it has something to do with the images, if I remove the
images, I get a load time of 2 sec. Problem is this is for print, so the
images have to be high res. There is a total of 9 images the top image is only
204 kb, the tire image is 304 kb the tire picture is on the page 8 times.
StokeyTCI Guest
-
StokeyTCI #5
Re: Cfdocument Speed issues
O and the file size of the PDF is only 329 kb
StokeyTCI Guest
-
StokeyTCI #6
Re: Cfdocument Speed issues
Guess from all the responses alot of people don't use this feature, so if someone wanted to create a dynamic pdf for publishing purposes how would you guys do it?
StokeyTCI Guest
-
rupeshk #7
Re: Cfdocument Speed issues
HI !
I tried exactly the same URL you had provided that creates a pdf out of
that html page.
[url]http://www.tirecenters.com/t3/adpdf.cfm[/url]
I timed it and i get the pdf within 15 secs (used firefox as well as IE). I
am wondering why is it happening on your machine? Did you try it from any
other client machine or any other browser?
Thanks & Regards,
Rupesh
rupeshk Guest
-
StokeyTCI #8
Re: Cfdocument Speed issues
Tried 4 machines here, but there all on the domain. hmmmmmmm
StokeyTCI Guest
-
StokeyTCI #9
Re: Cfdocument Speed issues
well just tried myself and your right, only took 15 seconds now. Weired. and of course the network dorks, won't admit to doing anything last week. LOL thanks anyway
StokeyTCI Guest



Reply With Quote

