Cfdocument Speed issues

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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' >&amp;nbsp;</td> <td height='180' colspan='3' width='2250'
    background='images/dealernamebar.gif'>&amp;nbsp;</td> <td
    width='75'>&amp;nbsp;</td> </tr> <tr > <td width='75'>&amp;nbsp;</td>
    <td height='360' colspan='3' width='2250'
    background='images/Page/Bottomsignature.gif' >&amp;nbsp;</td> <td
    width='75'>&amp;nbsp;</td> </tr> <tr > <td width='75'>&amp;nbsp;</td>
    <td height='220' colspan='3' width='2250' ></td> <td
    width='75'>&amp;nbsp;</td> </tr> <tr> <td height='20'>&amp;nbsp;</td>
    <td>&amp;nbsp;</td> <td>&amp;nbsp;</td> <td>&amp;nbsp;</td>
    <td>&amp;nbsp;</td> </tr> <tr> <td height='540'
    width='75'>&amp;nbsp;</td> <td width='1110'
    background='images/brand/4X4SYNCHRONE.jpg'><img
    src='images/brand/4X4SYNCHRONE.jpg'></td> <td width='30'>&amp;nbsp;</td>
    <td width='1110' background='images/brand/4X4SYNCHRONE.jpg'><img
    src='images/brand/4X4SYNCHRONE.jpg'></td> <td width='75'>&amp;nbsp;</td>
    </tr> <tr> <td height='20'>&amp;nbsp;</td> <td>&amp;nbsp;</td>
    <td>&amp;nbsp;</td> <td>&amp;nbsp;</td> <td>&amp;nbsp;</td> </tr>
    <tr> <td height='540' width='75'>&amp;nbsp;</td> <td width='1110'
    background='images/brand/4X4SYNCHRONE.jpg'><img
    src='images/brand/4X4SYNCHRONE.jpg'></td> <td width='30'>&amp;nbsp;</td>
    <td width='1110' background='images/brand/4X4SYNCHRONE.jpg'><img
    src='images/brand/4X4SYNCHRONE.jpg'></td> <td width='75'>&amp;nbsp;</td>
    </tr> <tr> <td height='20'>&amp;nbsp;</td> <td>&amp;nbsp;</td>
    <td>&amp;nbsp;</td> <td>&amp;nbsp;</td> <td>&amp;nbsp;</td> </tr>
    <tr> <td height='540' width='75'>&amp;nbsp;</td> <td width='1110'
    background='images/brand/4X4SYNCHRONE.jpg'><img
    src='images/brand/4X4SYNCHRONE.jpg'></td> <td width='30'>&amp;nbsp;</td>
    <td width='1110' background='images/brand/4X4SYNCHRONE.jpg'><img
    src='images/brand/4X4SYNCHRONE.jpg'></td> <td width='75'>&amp;nbsp;</td>
    </tr> </table> </cfdocument>

    StokeyTCI Guest

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default Re: Cfdocument Speed issues

    Just timed it and it took exacatly 10 min.
    StokeyTCI Guest

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default Re: Cfdocument Speed issues

    O and the file size of the PDF is only 329 kb
    StokeyTCI Guest

  7. #6

    Default 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

  8. #7

    Default 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

  9. #8

    Default Re: Cfdocument Speed issues

    Tried 4 machines here, but there all on the domain. hmmmmmmm
    StokeyTCI Guest

  10. #9

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139