Posted by
mar on
URL: https://discuss.orbeon.com/Can-a-PDF-of-what-is-displayed-in-the-browser-be-generated-via-the-XFORM-used-to-generate-the-HTML-b-tp1471489p1566582.html
All,
I need some help. I’m trying to generate a PDF from my xform similar to the way the Form Runner does it using only the Orbeon xforms engine and a few pipe line processes. I added a xforms:submit button to my test form that does a submission that uses the page-flow.xpl to call the pdf-view.xpl. I grabbed the latest developer source release and built it. I then copied the orbeon.war directory to my jboss install server¥default¥deploy¥ directory. I moved 3 files from the source codes fr/print directory to my apps/xforms-pdftest directory. Those files are pdf-view.xpl, print-pdf-notemplate.xpl, and unroll-form.xpl. I modified unroll-form.xmp to just pipline p:processor name="oxf:xslt" to p:processor name="oxf:url-generator". This seems to generate valid html except for the new error that I’m getting. I was getting the file not found on xforms-yuicalendar-min.css until I updated to the latest developer code release but now I’m getting it on the orbeon.css file
. java.io.FileNotFoundException:
http://localhost:8080/orbeon/orbeon/config/theme/orbeon.cssIs there a simple work around for this problem?
Any help is greatly appreciated.
Thanks.
Martin
-----Original Message-----
From: Schwartzman, Martin [mailto:
[hidden email]]
Sent: Monday, February 22, 2010 5:34 PM
To:
[hidden email]
Subject: [ops-users] RE: RE: Re: RE: Re: RE: Re: RE: Re: Can a PDF of what is displayed in thebrowserbe generated via the XFORM used to generate the HTML by the Orbeon engine?
Eric,
The print-pdf-notemplate.xpl is generating a java.io.FileNotFoundException
Exception Class java.io.FileNotFoundException
Message
http://localhost:8080/orbeon/orbeon/xforms-server/xforms-yuicalendar-min.csshttp://localhost:8080/orbeon/orbeon/xforms-server/xforms-yuicalendar-min.css N/A N/A
oxf:/apps/fr/print/print-pdf-notemplate.xpl 59 43
reading processor output
name → data
ref → data
<p:output name="data" ref="data"/>
I'm calling it from pdf-view.xpl. Any idea what's going wrong? I don't seem to be able to find the xforms-yuicalendar-min.css file in my orbeon.war directory. The error seems to be coming from the p:output
<!-- Serialize HTML to PDF -->
<p:processor name="oxf:xhtml-to-pdf">
<p:input name="data" href="#xhtml-data"/> <p:output name="data" ref="data"/> </p:processor>
Thanks.
Martin
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws