Re: CFDOCUMENT and Images
The problem often is so many other people using cfdocument or cfimage on a shared host and it causes problems. Too much memory gets used and cf never seems to recover, maybe a gc problem, who knows, but it is a common problem and the host cannot tune cf or java to any specific app as there are many. Basically if you are doing a lot of image or document generation then you are better off with your own vps. On 10 Dec 2010 01:35, "Michael Grant" wrote: This happens all to one of my cf8 apps a shared server we're on. It uses cfdocument to create a few hundred invoices with images a day. It will be working fine for about a week then all of a sudden it won't finish creating the pdf's. I've tried all the fixes that have been listed for the problem and it's always just come down to calling up the host and pleading with them to restart the cf service. They do, and then we're good for another week. On Thu, Dec 9, 2010 at 11:25 AM, Monique Boea wrote: > > Hi All. > > The... Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339957 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.hous... ~| 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:340114 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFDOCUMENT and Images
This happens all to one of my cf8 apps a shared server we're on. It uses cfdocument to create a few hundred invoices with images a day. It will be working fine for about a week then all of a sudden it won't finish creating the pdf's. I've tried all the fixes that have been listed for the problem and it's always just come down to calling up the host and pleading with them to restart the cf service. They do, and then we're good for another week. On Thu, Dec 9, 2010 at 11:25 AM, Monique Boea wrote: > > Hi All. > > There is an issue with CFDOCUMENT timing out on a PDF if there are images. > The request times out. > > I googled it and most people said the image has to have an absolute path. > > I tried that but it's still timing out. When I remove the link to the > image, > it works fine. > > Any suggestions? > > > ~| 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:339957 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFDocument and Images
Don't really know what else to suggest, it does sound rather like a bug and that cfdocument is using the wrong image references. You could try cleaning out all ColdFusions cache and temp folders I suppose and se eif that helps, Russ On Tue, Nov 23, 2010 at 9:36 AM, JediHomer wrote: > > Hi, > > Unfortunately this doesn't seem to cure the problem either. Calling > iText directly with Image.getInstance() and document.add() doesn't > show the problem, but due to the complexity of the reports, it's > something I'd rather only do as a 'no other option' scenario. > > > Kind regards > > Jedi > > On 22 November 2010 18:35, Jochem van Dieten wrote: > > > > On Mon, Nov 22, 2010 at 5:18 PM, JediHomer wrote: > >> I've tried toggleing the localURL with the img src set to > >> "./image1.png" and using ExpandPath to get the full path to the file > >> so that the img src is set to the full physical path to the file. I'm > >> on linux, so the path then becomes "/home/jedi/blah..." but the > >> problem is still the same... > > > > Try a "file:///home/jedi/..." path. > > > > Jochem > > > > -- > > Jochem van Dieten > > http://jochem.vandieten.net/ > > > > > > ~| 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:339507 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFDocument and Images
Hi, Unfortunately this doesn't seem to cure the problem either. Calling iText directly with Image.getInstance() and document.add() doesn't show the problem, but due to the complexity of the reports, it's something I'd rather only do as a 'no other option' scenario. Kind regards Jedi On 22 November 2010 18:35, Jochem van Dieten wrote: > > On Mon, Nov 22, 2010 at 5:18 PM, JediHomer wrote: >> I've tried toggleing the localURL with the img src set to >> "./image1.png" and using ExpandPath to get the full path to the file >> so that the img src is set to the full physical path to the file. I'm >> on linux, so the path then becomes "/home/jedi/blah..." but the >> problem is still the same... > > Try a "file:///home/jedi/..." path. > > Jochem > > -- > Jochem van Dieten > http://jochem.vandieten.net/ > > ~| 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:339450 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFDocument and Images
On Mon, Nov 22, 2010 at 5:18 PM, JediHomer wrote: > I've tried toggleing the localURL with the img src set to > "./image1.png" and using ExpandPath to get the full path to the file > so that the img src is set to the full physical path to the file. I'm > on linux, so the path then becomes "/home/jedi/blah..." but the > problem is still the same... Try a "file:///home/jedi/..." path. Jochem -- Jochem van Dieten http://jochem.vandieten.net/ ~| 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:339437 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFDocument and Images
I believe CF actually uses iTtext (http://itextpdf.com/), you could try manipulating this directly and see if you have the same issue, if so then perhaps updating iText may solve the problem. Russ -Original Message- From: JediHomer [mailto:jediho...@gmail.com] Sent: 22 November 2010 16:18 To: cf-talk Subject: Re: CFDocument and Images Hi, Yep, no difference. I've tried toggleing the localURL with the img src set to "./image1.png" and using ExpandPath to get the full path to the file so that the img src is set to the full physical path to the file. I'm on linux, so the path then becomes "/home/jedi/blah..." but the problem is still the same... Kind regards Jedi On 22 November 2010 16:08, Russ Michaels wrote: > > That depends how you have told it to get the images. > > See the localUrl attribute > Specifies whether to retrieve image files directly from the local drive: > > * yes: ColdFusion retrieves image files directly from the local drive > rather than by using HTTP, HTTPS, or proxy. > * no: ColdFusion uses HTTP, HTTPS, or proxy to retrieve image files even > if the files are stored locally. > > Have you tried setting it to "yes" and loading them from the local drive? > > > -- > Russ Michaels > > http://www.bluethunderinternet.com : B2B hosting, VPS's, Exchange, CF, Railo > www.cfmldeveloper.com : CFML community, FREE ColdFusion/Railo > hosting > http://www.michaels.me.uk : My Blog > skype me : russmichaels > > > > > ~| 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:339433 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFDocument and Images
Hi, Yep, no difference. I've tried toggleing the localURL with the img src set to "./image1.png" and using ExpandPath to get the full path to the file so that the img src is set to the full physical path to the file. I'm on linux, so the path then becomes "/home/jedi/blah..." but the problem is still the same... Kind regards Jedi On 22 November 2010 16:08, Russ Michaels wrote: > > That depends how you have told it to get the images. > > See the localUrl attribute > Specifies whether to retrieve image files directly from the local drive: > > * yes: ColdFusion retrieves image files directly from the local drive > rather than by using HTTP, HTTPS, or proxy. > * no: ColdFusion uses HTTP, HTTPS, or proxy to retrieve image files even > if the files are stored locally. > > Have you tried setting it to "yes" and loading them from the local drive? > > > -- > Russ Michaels > > http://www.bluethunderinternet.com : B2B hosting, VPS's, Exchange, CF, Railo > www.cfmldeveloper.com : CFML community, FREE ColdFusion/Railo > hosting > http://www.michaels.me.uk : My Blog > skype me : russmichaels > > > > > ~| 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:339432 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFDocument and Images
That depends how you have told it to get the images. See the localUrl attribute Specifies whether to retrieve image files directly from the local drive: * yes: ColdFusion retrieves image files directly from the local drive rather than by using HTTP, HTTPS, or proxy. * no: ColdFusion uses HTTP, HTTPS, or proxy to retrieve image files even if the files are stored locally. Have you tried setting it to "yes" and loading them from the local drive? -- Russ Michaels http://www.bluethunderinternet.com : B2B hosting, VPS's, Exchange, CF, Railo www.cfmldeveloper.com : CFML community, FREE ColdFusion/Railo hosting http://www.michaels.me.uk : My Blog skype me : russmichaels ~| 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:339431 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfdocument and images
Charles E. Heizer wrote: > Hello, > I'm trying to create a flash paper report and I'm trying to embbed a > jpeg in it and it won't display. Is this not supported? JPG is supported: http://www.it.dev.duke.edu/temp/flashpaper_with_jpeg.cfm However, if I remember correctly, flash does not support progressive jpegs so you might want to check into that. Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231808 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54