Re: D2W app and Excel and PDF generation example
Re: D2W app and Excel and PDF generation example
- Subject: Re: D2W app and Excel and PDF generation example
- From: Q <email@hidden>
- Date: Thu, 04 Aug 2011 20:14:44 +1000
You should be able to create a custom page wrapper and use a rule to set the "enabled" binding on ERPDFWrapper to turn any valid XHTML page into a PDF.
On 04/08/2011, at 7:33 PM, Johan Henselmans wrote:
>
> Op 4 aug. 2011, om 11:22 heeft Paul Hoadley het volgende geschreven:
>
>> On 04/08/2011, at 6:36 PM, Johan Henselmans wrote:
>>
>>> Is there any concise example that someone can share?
>>
>> There's a short screencast of Quinton's that shows you how to get ERPDFGeneration off the ground using the ERPDFWrapper component.
>>
>> http://idisk.mac.com/qdolan-Public/webobjects/PDFIn60Seconds.mov
>>
>
> Thanks, I have seen that one, but it does not explain how to get a D2W ListPage or InspectPage to be downloaded as a PDF document, it is in the 'regular' WOComponent way.
>
> But thanks anyway.
>
>> See also the component's Javadocs:
>>
>> http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/pdf/ERPDFWrapper.html
>>
>> 1. The component content must be valid XHTML.
>> 2. ERPDFWrapper should be the outermost component on the page, and the closing tag should not have any trailing content, even whitespace.
>> 3. The default rendering engine (FlyingSaucer + iText) understands some print-specific CSS, such as page sizes, the 'page-break-inside' property.
>>
>>
>> --
>> Paul.
>>
>> http://logicsquad.net/
>>
>>
>
> Johan Henselmans
> email@hidden
>
>
>
> _______________________________________________
> 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
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