Orbeon has 2 ways to generate PDF - automatic and template-based per:
http://wiki.orbeon.com/forms/doc/user-guide/form-builder-user-guide#TOC-PDF-generation I cant find any examples on AUTOMATIC way. It might looks simple and obvious to authors of orbean, but not for me. Please - can someone point me to the right direction. I just want to see in PDF exactly what I see on my HTML page. I guess there 2 pieces of puzzle: xform:submission attached to button/link and action handler on the back end. Thanks, Vladimir |
Administrator
|
Vladimir,
If you are not providing a PDF template, then there is nothing you need to do. You just deploy the form and hit the PDF button to "print" the current form. Alex On Thu, May 27, 2010 at 7:37 AM, vladimirB <[hidden email]> wrote: > > Orbeon has 2 ways to generate PDF - automatic and template-based per: > http://wiki.orbeon.com/forms/doc/user-guide/form-builder-user-guide#TOC-PDF-generation > http://wiki.orbeon.com/forms/doc/user-guide/form-builder-user-guide#TOC-PDF-generation > > I cant find any examples on AUTOMATIC way. It might looks simple and obvious > to authors of orbean, but not for me. > > Please - can someone point me to the right direction. I just want to see in > PDF exactly what I see on my HTML page. > > I guess there 2 pieces of puzzle: xform:submission attached to button/link > and action handler on the back end. > > Thanks, Vladimir > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Orbeon-output-to-PDF-AUTOMATIC-way-sample-needed-tp2233238p2233238.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > 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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Thanks for quick response, however I must provide more details.
We use JSP ( xforms tags are just custom tag libraries -right?) So how do I add that PDF link/button on JSP page? |
Administrator
|
Vladimir,
Ah; the PDF button is a feature of Form Runner, so it only works if you use Form Builder to create your forms. And I gather that this is not what you are doing, since you mention JSPs; is that right? Alex On Fri, May 28, 2010 at 12:14 PM, vladimirB <[hidden email]> wrote: > > Thanks for quick response, however I must provide more details. > > We use JSP ( xforms tags are just custom tag libraries -right?) > > So how do I add that PDF link/button on JSP page? > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Orbeon-output-to-PDF-AUTOMATIC-way-sample-needed-tp2233238p2235054.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > 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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
That's right - JSP with xforms custom tags.
|
Alex - please do not leave me alone :-)
|
Administrator
|
Vladimir,
Hooking this up is unfortunately not just a one-liner. In fact, that's one of the reasons we created Form Runner: to make this kind of functionality available out of the box, without you having to spend a lot of time putting things together again. In Form Runner, the magic occurs mostly here: http://github.com/orbeon/orbeon-forms/tree/master/src/resources/apps/fr/print/ http://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/fr/print/print-pdf-notemplate.xpl This pipeline runs the XForms page behind the scene, captures its XHTML output, and then runs it through oxf:xhtml-to-pdf, which outputs, well, a PDF, which is then serialized to the client. So that's the theory. Maybe you can get inspiration from that. -Erik On Thu, Jun 3, 2010 at 11:19 AM, vladimirB <[hidden email]> wrote: > > Alex - please do not leave me alone :-) > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Orbeon-output-to-PDF-AUTOMATIC-way-sample-needed-tp2233238p2242121.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > 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 > > -- 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 |
Thanks Erik -I did not expect it to be easy. Will do some digging.
btw- Where is Alex? - is he on vacation? :-) |
In reply to this post by Erik Bruchez
Hi Erik
I understood what you said and looks like I just need to properly call pdf routine and pass instance on. But make print PDF working from JSP... I have read bunch of threads related to it and I need "big guy" assistance :-) What I have: I have "Separate deployment": orbeon in one place and my java app in another. My web.xml is attached web.xml My jsp attached test-pdf1.jsp very simple test_look_like ORBEON: 3.7, I do not have war file, instead I have extracted war in: SERVER\webapps\orbean I have downloaded entire FR folder and saved it to webapps\orbeon\WEB-INF\resources\apps\fr. Welcome and other app are working Configuration: added line <page path-info="/pdf" model="apps/fr/print/print-pdf-notemplate.xpl"/> in webapps\orbeon\WEB-INF\resources\page-flow.xml But it looks like I cant even submit - getting "error code received when submitting instance: 500 " from class org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException Kind of useful threads http://orbeon-forms-ops-users.24843.n4.nabble.com/PDF-td33559.html http://orbeon-forms-ops-users.24843.n4.nabble.com/Can-a-PDF-of-what-is-displayed-in-the-browser-be-generated-via-the-XFORM-used-to-generate-the-HTML-b-td1471489.html What did I miss? do you have any working sample? Any help guidance is appreciated. Thanks Vlad |
Administrator
|
Vlad,
The PDF pipeline in Form Runner probably won't work as is, because it assumes quite a bit of the Form Runner infrastructure. I guess you are getting a 500 error because some error occurs in that pipeline. The "working sample" is Form Runner ;) I understand your pain but if you want to duplicate that functionality of Form Runner in your app, without actually using Form Runner, you will probably need to understand that particular Form Runner code: what the pipelines do, and what data they use. -Erik On Mon, Jun 14, 2010 at 10:10 AM, vladimirB <[hidden email]> wrote: > > Hi Erik > I understood what you said and looks like I just need to properly call pdf > routine and pass instance on. > But make print PDF working from JSP... I have read bunch of threads related > to it and I need "big guy" assistance :-) > > What I have: > I have "Separate deployment": orbeon in one place and my java app in > another. > My web.xml is attached > http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n2254743/web.xml > web.xml > My jsp attached > http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n2254743/test-pdf1.jsp > test-pdf1.jsp very simple test_look_like > > ORBEON: 3.7, I do not have war file, instead I have extracted war in: > SERVER\webapps\orbean > I have downloaded entire FR folder and saved it to > webapps\orbeon\WEB-INF\resources\apps\fr. > Welcome and other app are working > Configuration: added line <page path-info="/pdf" > model="apps/fr/print/print-pdf-notemplate.xpl"/> > in webapps\orbeon\WEB-INF\resources\page-flow.xml > > But it looks like I cant even submit - getting "error code received when > submitting instance: 500 " from class > org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException > > Kind of useful threads > http://orbeon-forms-ops-users.24843.n4.nabble.com/PDF-td33559.html > http://orbeon-forms-ops-users.24843.n4.nabble.com/Can-a-PDF-of-what-is-displayed-in-the-browser-be-generated-via-the-XFORM-used-to-generate-the-HTML-b-td1471489.html > > > What did I miss? do you have any working sample? > Any help guidance is appreciated. > Thanks > Vlad > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Orbeon-output-to-PDF-AUTOMATIC-way-sample-needed-tp2233238p2254743.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > 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 > > -- 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 |
In reply to this post by vladimirB
Hello Vlad
Did you manage to generate PDFs with your separate deployment? Thank you for the information, Karolin |
Free forum by Nabble | Edit this page |