Hi Paul,
I generate a great pdf file. Thanks
I want to know if it's possible to generate a landscape dpf file?
I generate a great pdf file. Thanks
I want to know if it's possible to generate a landscape dpf file?
Envoyé depuis iCloud
Le 17 nov 2011 à 05:12, Raymond NANEON <rnan...@me.com> a écrit :
Hi Paul,
I made tests and your generation pdf method work very well. I go use it to generate my specifique pdf file.
I will tell you.
RayEnvoyé depuis iCloud
Le 17 nov 2011 à 03:06, Paul Yu <p...@mac.com> a écrit :RaymondThat is just to set the object of interest into the component that you want to download.So in the MyPDFPage component.MyPDFPage.javaprivate MyClass _myObject;public void setMyObject(MyClass myObject) {_myObject = myObject;}public MyClass myObject() {return _myObject;}MyPDFPage.html<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<head><metahttp-equiv="Content-Type"content="text/html; charset=utf-8"/><title><wo:strvalue="$myObject.name"/></title><wo:ERXStyleSheetfilename="css/style-print.css"media="print"/></head>
<body><divclass="contentArea"><wo:str value = "$myObject.name" /></div></body>On Nov 17, 2011, at 5:59 AM, Raymond NANEON wrote:Hi Paul,
thanks a lot for your quick answer but what is the method myObject() ?Envoyé depuis iCloud
Le 17 nov 2011 à 02:32, Paul Yu <p...@mac.com> a écrit :RaymondHere's the more complete example.MyComponent.javapublic WOActionResults downloadAsPDF() {NSMutableDictionary<String, Object> configuration = new NSMutableDictionary<String, Object>();WOContext context = (WOContext) context().clone();MyPDFPage pdfPage = (MyPDFPage) WOApplication.application().pageWithName(MyPDFPage.class.getName(), context);pdfPage.setMyObject(myObject());String baseFileName = someString();String filename = pdfDocumentPrefix() + baseFileName + ".pdf";configuration.takeValueForKey(filename, "filename");WOResponse pdfReport = ERPDFUtilities.pageAsPdf(pdfPage, configuration).generateResponse();return pdfReport;}MyComponent.html<!-- Using inline binding --><wo:linkaction="$downloadAsPDF"class="downloadPDF"alt="Download PDF"title="Download in PDF format"target="_blank">Download</wo:link>PaulOn Nov 17, 2011, at 2:51 AM, Raymond NANEON wrote:Hi Paul,
I followed 60 secondes tutorial from wocommunity youtube channel about ERPDFGeneration and I didn't see this method. So it is used for japser report or ERPDFWrapper.
Thanks.Envoyé depuis iCloud
Le 16 nov 2011 à 09:28, Paul Yu <p...@mac.com> a écrit :RaymondSome thing like thisString baseFileName = someString();String filename = pdfDocumentPrefix() + baseFileName + ".pdf";configuration.takeValueForKey(filename, "filename");WOResponse pdfReport = ERPDFUtilities.pageAsPdf(pdfPage, configuration).generateResponse();return pdfReport;On Nov 16, 2011, at 12:24 PM, Raymond NANEON wrote:_______________________________________________Hi Ramsey,I use woongl in my page, the tag is not properly set. I would like to know why the fetching data is not finished and the pdf file is generated and how to change pdf file name.Thanks
Envoyé de mon iPhoneI'm not sure how it's becoming malformed for you, but I do know that the PDF generator requires well formed xhtml. If you are missing end tags or have an unencoded & anywhere, you're going to be disappointed.RamseyOn Nov 16, 2011, at 2:11 AM, Raymond NANEON wrote:_______________________________________________Hi All,I tried to generate a PDF file using ERPDFWrapper but I have a result.pdf file which is malformed. The page haven't time to get fetching data and the .pdf file is generated.So how Can I fix it.1:/ get fetch data2:/ generate pdf file from dataPS : There is a way to change file name?thanks for your helpsEnvoyé depuis iCloudThanks Ramsey and Pascal for the quick reaction and great help :DRayEnvoyé depuis iCloudBTW, that one is also on YouTube:
http://www.youtube.com/wocommunity
> Check out ERPDF in 60 seconds on the podcast:
>
> http://www.wocommunity.org/podcasts/wopodcasts.xml
>
> Ramsey
>
> On Nov 8, 2011, at 9:22 AM, Raymond NANEON wrote:
>
>> Hi All,
>>
>> I am trying to generate a PDF file from a page of my apps and I saw ERPDFGeneration plugin in the WONDER Library. I want to know if someone have used it and have a little tutorial to show me how it works.
>>
>> Thanks
>> Envoyé depuis iCloud
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
>>
>> This email sent to rgur...@smarthealth.com
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>
> This email sent to prob...@macti.ca
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rnaneon%40me.com
This email sent to rnan...@me.com
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
This email sent to rgur...@smarthealth.com
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com
This email sent to p...@mac.com_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rnaneon%40me.com
This email sent to rnan...@me.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com