Re: ERPDFGenerator and Charts
Re: ERPDFGenerator and Charts
- Subject: Re: ERPDFGenerator and Charts
- From: Q <email@hidden>
- Date: Fri, 01 Jul 2011 21:31:12 +1000
On 01/07/2011, at 8:40 PM, Sergio Sánchez Maffet wrote:
>
> On 01.07.2011, at 02:02, Q wrote:
>
>>
>> On 01/07/2011, at 6:05 AM, Sergio Sánchez Maffet wrote:
>>
>>> Hi all,
>>>
>>> Maybe there is someone who can help with this issue.
>>> Need to create a PDF including a chart.
>>>
>>> Have tried:
>>>
>>> ERPDFUtilities.pageAsPdf(pdfPage)
>>>
>>> With pdfPage being a normal WOComponent including a ERPCategoryChart element, but this does not work.
>>> I'm getting a PDF page, but the chart image is missing. The produced HTML is ok, even the temporary image URL is providing the image correctly.
>>> It seems that the image is not even requested by the PDF renderer. Any Ideas?
>>
>> What are you seeing that makes you think the image is not being requested?
>
> I can download the image exactly one time. Nothing in the logs.
You won't see anything in the logs, the pdf creation process requests the cached image resource directly from the WOResourceManager, it doesn't create a http request to retrieve it.
>>
...
>>
>> If you try viewing the page with it wrapped in an ERPDFWrapper component does the graph show up then?
>> Are you doing anything that might cause the temporary image to be fetched before the pdf generation takes place?
>>
>
> s.o. I can download the image only once, that indicates, that nobody else is trying to download it...
> I'm using ERPDFUtilities.pageAsPdf(), which is an ERPPDFWrapper...
Yes they both end up using an ERPDFWrapper, I was just curious if it made any difference if you change how it was created.
I'm really not sure what's going on with that. If you can create a small sample app that demonstrates the problem then send it to me and I will have a look.
--
Seeya...Q
Quinton Dolan - email@hidden
Gold Coast, QLD, Australia (GMT+10)
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden