I found Orbeon documentation that says "Orbeon Forms supports producing PDF either automatically by following the layout of the HTML output, or by using PDF templates." I think I want the automatic way. Can a PDF of what is displayed in the browser be generated via the XFORM that generated the browser output (submission XPL)? If so can someone point me to an example. Thanks in advance. -- 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 |
Administrator
|
Martin,
Yes, that's what Form Runner does. If you don't want to use Form Runner, you will have to look at how Form Runner does it and implement something similar (with the oxf:xforms-to-xhtml processor). That's under the RESOURCES/apps/fr/print directory. -Erik On Sat, Feb 6, 2010 at 11:05 AM, Schwartzman, Martin <[hidden email]> wrote: > > I found Orbeon documentation that says "Orbeon Forms supports producing > PDF either automatically by following the layout of the HTML output, or > by using PDF templates." I think I want the automatic way. Can a PDF of > what is displayed in the browser be generated via the XFORM that > generated the browser output (submission XPL)? If so can someone point > me to an example. > > Thanks in advance. > > > > > -- > 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 |
Erik, I'm not finding the orbeon/WEB-INF/resources/apps/fr/print directory? Am I not looking in the right place or was a directory name changed? Thanks. Martin -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: Monday, February 08, 2010 12:19 PM To: [hidden email] Subject: [ops-users] Re: Can a PDF of what is displayed in the browser be generated via the XFORM used to generate the HTML by the Orbeon engine? Martin, Yes, that's what Form Runner does. If you don't want to use Form Runner, you will have to look at how Form Runner does it and implement something similar (with the oxf:xforms-to-xhtml processor). That's under the RESOURCES/apps/fr/print directory. -Erik On Sat, Feb 6, 2010 at 11:05 AM, Schwartzman, Martin <[hidden email]> wrote: > > I found Orbeon documentation that says "Orbeon Forms supports > producing PDF either automatically by following the layout of the HTML > output, or by using PDF templates." I think I want the automatic way. > Can a PDF of what is displayed in the browser be generated via the > XFORM that generated the browser output (submission XPL)? If so can > someone point me to an example. > > Thanks in advance. > > > > > -- > You receive this message as a subscriber of the [hidden email] > 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 |
Administrator
|
Martin,
If you are not working on the source from git, this is stored in orbeon-form-runner.jar. -Erik On Mon, Feb 8, 2010 at 12:01 PM, Schwartzman, Martin <[hidden email]> wrote: > > Erik, > > I'm not finding the orbeon/WEB-INF/resources/apps/fr/print directory? > > Am I not looking in the right place or was a directory name changed? > > Thanks. > > Martin > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik > Bruchez > Sent: Monday, February 08, 2010 12:19 PM > To: [hidden email] > Subject: [ops-users] Re: Can a PDF of what is displayed in the browser > be generated via the XFORM used to generate the HTML by the Orbeon > engine? > > Martin, > > Yes, that's what Form Runner does. If you don't want to use Form Runner, > you will have to look at how Form Runner does it and implement something > similar (with the oxf:xforms-to-xhtml processor). That's under the > RESOURCES/apps/fr/print directory. > > -Erik > > On Sat, Feb 6, 2010 at 11:05 AM, Schwartzman, Martin > <[hidden email]> wrote: >> >> I found Orbeon documentation that says "Orbeon Forms supports >> producing PDF either automatically by following the layout of the HTML > >> output, or by using PDF templates." I think I want the automatic way. >> Can a PDF of what is displayed in the browser be generated via the >> XFORM that generated the browser output (submission XPL)? If so can >> someone point me to an example. >> >> Thanks in advance. >> >> >> >> >> -- >> 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 > > -- 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 |
Erik,
I thought I was using Form Runner to run my (example) view.xhtml. I run the view.xhtml file from within the orbeon.war\WEB-INF\resources\apps\xforms-hello directory of my jboss container so I guess I don't understand what you mean when you say "If you don't want to use Form Runner".. I've looked at the fr/print directory that you mention below and attempted to use a xforms:submission to run the print-form.xpl but nothing happens. I must be missing pieces of the puzzle. I've attached my xforms-hello directory that I've pieced together so far. Can you tell me what else I'm missing or point me to some additional documentation or examples. Thanks in advance. Martin -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: Monday, February 08, 2010 2:51 PM To: [hidden email] Subject: [ops-users] Re: RE: Re: Can a PDF of what is displayed in the browserbe generated via the XFORM used to generate the HTML by the Orbeon engine? Martin, If you are not working on the source from git, this is stored in orbeon-form-runner.jar. -Erik On Mon, Feb 8, 2010 at 12:01 PM, Schwartzman, Martin <[hidden email]> wrote: > > Erik, > > I'm not finding the orbeon/WEB-INF/resources/apps/fr/print directory? > > Am I not looking in the right place or was a directory name changed? > > Thanks. > > Martin > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik > Bruchez > Sent: Monday, February 08, 2010 12:19 PM > To: [hidden email] > Subject: [ops-users] Re: Can a PDF of what is displayed in the browser > be generated via the XFORM used to generate the HTML by the Orbeon > engine? > > Martin, > > Yes, that's what Form Runner does. If you don't want to use Form > Runner, you will have to look at how Form Runner does it and implement > something similar (with the oxf:xforms-to-xhtml processor). That's > under the RESOURCES/apps/fr/print directory. > > -Erik > > On Sat, Feb 6, 2010 at 11:05 AM, Schwartzman, Martin > <[hidden email]> wrote: >> >> I found Orbeon documentation that says "Orbeon Forms supports >> producing PDF either automatically by following the layout of the >> HTML > >> output, or by using PDF templates." I think I want the automatic way. >> Can a PDF of what is displayed in the browser be generated via the >> XFORM that generated the browser output (submission XPL)? If so can >> someone point me to an example. >> >> Thanks in advance. >> >> >> >> >> -- >> 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] > 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 xforms-hello.zip (14K) Download Attachment |
Martin,
In that case you are not using Form Runner, you are just working on top of the raw XForms engine. Form Runner is small but convenient (we hope) layer above that: http://www.orbeon.com/forms/orbeon-form-runner http://wiki.orbeon.com/forms/doc/developer-guide/form-runner-programmer-guide The reason we developed Form Runner was exactly so you wouldn't have to rewrite things like PDF output yourself. Is there any chance Form Runner can work for you? -Erik On Wed, Feb 17, 2010 at 9:23 AM, Schwartzman, Martin <[hidden email]> wrote: > Erik, > > I thought I was using Form Runner to run my (example) view.xhtml. I run > the view.xhtml file from within the > orbeon.war\WEB-INF\resources\apps\xforms-hello directory of my jboss > container so I guess I don't understand what you mean when you say "If > you don't want to use Form Runner".. > > I've looked at the fr/print directory that you mention below and > attempted to use a xforms:submission to run the print-form.xpl but > nothing happens. I must be missing pieces of the puzzle. I've attached > my xforms-hello directory that I've pieced together so far. Can you tell > me what else I'm missing or point me to some additional documentation or > examples. > > Thanks in advance. > > Martin > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik > Bruchez > Sent: Monday, February 08, 2010 2:51 PM > To: [hidden email] > Subject: [ops-users] Re: RE: Re: Can a PDF of what is displayed in the > browserbe generated via the XFORM used to generate the HTML by the > Orbeon engine? > > Martin, > > If you are not working on the source from git, this is stored in > orbeon-form-runner.jar. > > -Erik > > On Mon, Feb 8, 2010 at 12:01 PM, Schwartzman, Martin > <[hidden email]> wrote: >> >> Erik, >> >> I'm not finding the orbeon/WEB-INF/resources/apps/fr/print directory? >> >> Am I not looking in the right place or was a directory name changed? >> >> Thanks. >> >> Martin >> -----Original Message----- >> From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik > >> Bruchez >> Sent: Monday, February 08, 2010 12:19 PM >> To: [hidden email] >> Subject: [ops-users] Re: Can a PDF of what is displayed in the browser > >> be generated via the XFORM used to generate the HTML by the Orbeon >> engine? >> >> Martin, >> >> Yes, that's what Form Runner does. If you don't want to use Form >> Runner, you will have to look at how Form Runner does it and implement > >> something similar (with the oxf:xforms-to-xhtml processor). That's >> under the RESOURCES/apps/fr/print directory. >> >> -Erik >> >> On Sat, Feb 6, 2010 at 11:05 AM, Schwartzman, Martin >> <[hidden email]> wrote: >>> >>> I found Orbeon documentation that says "Orbeon Forms supports >>> producing PDF either automatically by following the layout of the >>> HTML >> >>> output, or by using PDF templates." I think I want the automatic way. >>> Can a PDF of what is displayed in the browser be generated via the >>> XFORM that generated the browser output (submission XPL)? If so can >>> someone point me to an example. >>> >>> Thanks in advance. >>> >>> >>> >>> >>> -- >>> 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 >> >> > > > -- > 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 |
Eric,
At this point I think I'm too far into the project to try to convert my forms to use Form Runner. Is there a simple example of how one would go about implementing PDF printing like the Form Runner does it or what files do I need to look at to figure it out. Any hints to speed up the process are greatly appreciated. Martin -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] Sent: Wednesday, February 17, 2010 11:29 AM To: [hidden email] Subject: [ops-users] 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? Martin, In that case you are not using Form Runner, you are just working on top of the raw XForms engine. Form Runner is small but convenient (we hope) layer above that: http://www.orbeon.com/forms/orbeon-form-runner http://wiki.orbeon.com/forms/doc/developer-guide/form-runner-programmer- guide The reason we developed Form Runner was exactly so you wouldn't have to rewrite things like PDF output yourself. Is there any chance Form Runner can work for you? -Erik On Wed, Feb 17, 2010 at 9:23 AM, Schwartzman, Martin <[hidden email]> wrote: > Erik, > > I thought I was using Form Runner to run my (example) view.xhtml. I > run the view.xhtml file from within the > orbeon.war\WEB-INF\resources\apps\xforms-hello directory of my jboss > container so I guess I don't understand what you mean when you say "If > you don't want to use Form Runner".. > > I've looked at the fr/print directory that you mention below and > attempted to use a xforms:submission to run the print-form.xpl but > nothing happens. I must be missing pieces of the puzzle. I've attached > my xforms-hello directory that I've pieced together so far. Can you > tell me what else I'm missing or point me to some additional > documentation or examples. > > Thanks in advance. > > Martin > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik > Bruchez > Sent: Monday, February 08, 2010 2:51 PM > To: [hidden email] > Subject: [ops-users] Re: RE: Re: Can a PDF of what is displayed in the > browserbe generated via the XFORM used to generate the HTML by the > Orbeon engine? > > Martin, > > If you are not working on the source from git, this is stored in > orbeon-form-runner.jar. > > -Erik > > On Mon, Feb 8, 2010 at 12:01 PM, Schwartzman, Martin > <[hidden email]> wrote: >> >> Erik, >> >> I'm not finding the orbeon/WEB-INF/resources/apps/fr/print directory? >> >> Am I not looking in the right place or was a directory name changed? >> >> Thanks. >> >> Martin >> -----Original Message----- >> From: [hidden email] [mailto:[hidden email]] On Behalf Of >> Erik > >> Bruchez >> Sent: Monday, February 08, 2010 12:19 PM >> To: [hidden email] >> Subject: [ops-users] Re: Can a PDF of what is displayed in the >> browser > >> be generated via the XFORM used to generate the HTML by the Orbeon >> engine? >> >> Martin, >> >> Yes, that's what Form Runner does. If you don't want to use Form >> Runner, you will have to look at how Form Runner does it and >> implement > >> something similar (with the oxf:xforms-to-xhtml processor). That's >> under the RESOURCES/apps/fr/print directory. >> >> -Erik >> >> On Sat, Feb 6, 2010 at 11:05 AM, Schwartzman, Martin >> <[hidden email]> wrote: >>> >>> I found Orbeon documentation that says "Orbeon Forms supports >>> producing PDF either automatically by following the layout of the >>> HTML >> >>> output, or by using PDF templates." I think I want the automatic >>> Can a PDF of what is displayed in the browser be generated via the >>> XFORM that generated the browser output (submission XPL)? If so can >>> someone point me to an example. >>> >>> Thanks in advance. >>> >>> >>> >>> >>> -- >>> 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 >> >> > > > -- > You receive this message as a subscriber of the [hidden email] > 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 |
Martin,
I dont think that there is an example besides the Form Runner print directory I pointed to. -Erik On Wed, Feb 17, 2010 at 12:43 PM, Schwartzman, Martin <[hidden email]> wrote: > Eric, > > At this point I think I'm too far into the project to try to convert my > forms to use Form Runner. Is there a simple example of how one would go > about implementing PDF printing like the Form Runner does it or what > files do I need to look at to figure it out. Any hints to speed up the > process are greatly appreciated. > > > Martin > > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] > Sent: Wednesday, February 17, 2010 11:29 AM > To: [hidden email] > Subject: [ops-users] 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? > > Martin, > > In that case you are not using Form Runner, you are just working on top > of the raw XForms engine. > > Form Runner is small but convenient (we hope) layer above that: > > http://www.orbeon.com/forms/orbeon-form-runner > http://wiki.orbeon.com/forms/doc/developer-guide/form-runner-programmer- > guide > > The reason we developed Form Runner was exactly so you wouldn't have to > rewrite things like PDF output yourself. Is there any chance Form Runner > can work for you? > > -Erik > > On Wed, Feb 17, 2010 at 9:23 AM, Schwartzman, Martin > <[hidden email]> wrote: >> Erik, >> >> I thought I was using Form Runner to run my (example) view.xhtml. I >> run the view.xhtml file from within the >> orbeon.war\WEB-INF\resources\apps\xforms-hello directory of my jboss >> container so I guess I don't understand what you mean when you say "If > >> you don't want to use Form Runner".. >> >> I've looked at the fr/print directory that you mention below and >> attempted to use a xforms:submission to run the print-form.xpl but >> nothing happens. I must be missing pieces of the puzzle. I've attached > >> my xforms-hello directory that I've pieced together so far. Can you >> tell me what else I'm missing or point me to some additional >> documentation or examples. >> >> Thanks in advance. >> >> Martin >> >> -----Original Message----- >> From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik > >> Bruchez >> Sent: Monday, February 08, 2010 2:51 PM >> To: [hidden email] >> Subject: [ops-users] Re: RE: Re: Can a PDF of what is displayed in the > >> browserbe generated via the XFORM used to generate the HTML by the >> Orbeon engine? >> >> Martin, >> >> If you are not working on the source from git, this is stored in >> orbeon-form-runner.jar. >> >> -Erik >> >> On Mon, Feb 8, 2010 at 12:01 PM, Schwartzman, Martin >> <[hidden email]> wrote: >>> >>> Erik, >>> >>> I'm not finding the orbeon/WEB-INF/resources/apps/fr/print directory? >>> >>> Am I not looking in the right place or was a directory name changed? >>> >>> Thanks. >>> >>> Martin >>> -----Original Message----- >>> From: [hidden email] [mailto:[hidden email]] On Behalf Of >>> Erik >> >>> Bruchez >>> Sent: Monday, February 08, 2010 12:19 PM >>> To: [hidden email] >>> Subject: [ops-users] Re: Can a PDF of what is displayed in the >>> browser >> >>> be generated via the XFORM used to generate the HTML by the Orbeon >>> engine? >>> >>> Martin, >>> >>> Yes, that's what Form Runner does. If you don't want to use Form >>> Runner, you will have to look at how Form Runner does it and >>> implement >> >>> something similar (with the oxf:xforms-to-xhtml processor). That's >>> under the RESOURCES/apps/fr/print directory. >>> >>> -Erik >>> >>> On Sat, Feb 6, 2010 at 11:05 AM, Schwartzman, Martin >>> <[hidden email]> wrote: >>>> >>>> I found Orbeon documentation that says "Orbeon Forms supports >>>> producing PDF either automatically by following the layout of the >>>> HTML >>> >>>> output, or by using PDF templates." I think I want the automatic > way. >>>> Can a PDF of what is displayed in the browser be generated via the >>>> XFORM that generated the browser output (submission XPL)? If so can >>>> someone point me to an example. >>>> >>>> Thanks in advance. >>>> >>>> >>>> >>>> >>>> -- >>>> 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 >>> >>> >> >> >> -- >> 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 > > -- 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 |
Erik,
In the print directory I spotted print-pdf-notemplate.xpl which sounds like what I want. I'm trying to call the print-pdf-notemplate.xpl from my slightly modified xforms-hello/view.xhtml with the following submission but nothing happens. Can you tell me the correct way to call the print-pdf-notemplate.xpl? <xforms:submission id="generate-pdf" ref="xxforms:instance('fr-form-instance')" action="/xforms-hello/generate-pdf" method="post" replace="none" /> Thanks. Martin -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] Sent: Wednesday, February 17, 2010 5:48 PM To: [hidden email] Subject: [ops-users] 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? Martin, I dont think that there is an example besides the Form Runner print directory I pointed to. -Erik On Wed, Feb 17, 2010 at 12:43 PM, Schwartzman, Martin <[hidden email]> wrote: > Eric, > > At this point I think I'm too far into the project to try to convert > my forms to use Form Runner. Is there a simple example of how one > would go about implementing PDF printing like the Form Runner does it > or what files do I need to look at to figure it out. Any hints to > speed up the process are greatly appreciated. > > > Martin > > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] > Sent: Wednesday, February 17, 2010 11:29 AM > To: [hidden email] > Subject: [ops-users] 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? > > Martin, > > In that case you are not using Form Runner, you are just working on > top of the raw XForms engine. > > Form Runner is small but convenient (we hope) layer above that: > > http://www.orbeon.com/forms/orbeon-form-runner > http://wiki.orbeon.com/forms/doc/developer-guide/form-runner-programme > r- > guide > > The reason we developed Form Runner was exactly so you wouldn't have > to rewrite things like PDF output yourself. Is there any chance Form > Runner can work for you? > > -Erik > > On Wed, Feb 17, 2010 at 9:23 AM, Schwartzman, Martin > <[hidden email]> wrote: >> Erik, >> >> I thought I was using Form Runner to run my (example) view.xhtml. I >> run the view.xhtml file from within the >> orbeon.war\WEB-INF\resources\apps\xforms-hello directory of my jboss >> container so I guess I don't understand what you mean when you say >> "If > >> you don't want to use Form Runner".. >> >> I've looked at the fr/print directory that you mention below and >> attempted to use a xforms:submission to run the print-form.xpl but >> nothing happens. I must be missing pieces of the puzzle. I've >> attached > >> my xforms-hello directory that I've pieced together so far. Can you >> tell me what else I'm missing or point me to some additional >> documentation or examples. >> >> Thanks in advance. >> >> Martin >> >> -----Original Message----- >> From: [hidden email] [mailto:[hidden email]] On Behalf Of >> Erik > >> Bruchez >> Sent: Monday, February 08, 2010 2:51 PM >> To: [hidden email] >> Subject: [ops-users] Re: RE: Re: Can a PDF of what is displayed in >> the > >> browserbe generated via the XFORM used to generate the HTML by the >> Orbeon engine? >> >> Martin, >> >> If you are not working on the source from git, this is stored in >> orbeon-form-runner.jar. >> >> -Erik >> >> On Mon, Feb 8, 2010 at 12:01 PM, Schwartzman, Martin >> <[hidden email]> wrote: >>> >>> Erik, >>> >>> I'm not finding the orbeon/WEB-INF/resources/apps/fr/print >>> >>> Am I not looking in the right place or was a directory name changed? >>> >>> Thanks. >>> >>> Martin >>> -----Original Message----- >>> From: [hidden email] [mailto:[hidden email]] On Behalf Of >>> Erik >> >>> Bruchez >>> Sent: Monday, February 08, 2010 12:19 PM >>> To: [hidden email] >>> Subject: [ops-users] Re: Can a PDF of what is displayed in the >>> browser >> >>> be generated via the XFORM used to generate the HTML by the Orbeon >>> engine? >>> >>> Martin, >>> >>> Yes, that's what Form Runner does. If you don't want to use Form >>> Runner, you will have to look at how Form Runner does it and >>> implement >> >>> something similar (with the oxf:xforms-to-xhtml processor). That's >>> under the RESOURCES/apps/fr/print directory. >>> >>> -Erik >>> >>> On Sat, Feb 6, 2010 at 11:05 AM, Schwartzman, Martin >>> <[hidden email]> wrote: >>>> >>>> I found Orbeon documentation that says "Orbeon Forms supports >>>> producing PDF either automatically by following the layout of the >>>> HTML >>> >>>> output, or by using PDF templates." I think I want the automatic > way. >>>> Can a PDF of what is displayed in the browser be generated via the >>>> XFORM that generated the browser output (submission XPL)? If so can >>>> someone point me to an example. >>>> >>>> Thanks in advance. >>>> >>>> >>>> >>>> >>>> -- >>>> 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 >>> >>> >> >> >> -- >> 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] > 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 |
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.css http://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 -----Original Message----- From: Schwartzman, Martin [mailto:[hidden email]] Sent: Friday, February 19, 2010 10:48 AM To: [hidden email] Subject: [ops-users] 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? Erik, In the print directory I spotted print-pdf-notemplate.xpl which sounds like what I want. I'm trying to call the print-pdf-notemplate.xpl from my slightly modified xforms-hello/view.xhtml with the following submission but nothing happens. Can you tell me the correct way to call the print-pdf-notemplate.xpl? <xforms:submission id="generate-pdf" ref="xxforms:instance('fr-form-instance')" action="/xforms-hello/generate-pdf" method="post" replace="none" /> Thanks. Martin -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] Sent: Wednesday, February 17, 2010 5:48 PM To: [hidden email] Subject: [ops-users] 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? Martin, I dont think that there is an example besides the Form Runner print directory I pointed to. -Erik On Wed, Feb 17, 2010 at 12:43 PM, Schwartzman, Martin <[hidden email]> wrote: > Eric, > > At this point I think I'm too far into the project to try to convert > my forms to use Form Runner. Is there a simple example of how one > would go about implementing PDF printing like the Form Runner does it > or what files do I need to look at to figure it out. Any hints to > speed up the process are greatly appreciated. > > > Martin > > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] > Sent: Wednesday, February 17, 2010 11:29 AM > To: [hidden email] > Subject: [ops-users] 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? > > Martin, > > In that case you are not using Form Runner, you are just working on > top of the raw XForms engine. > > Form Runner is small but convenient (we hope) layer above that: > > http://www.orbeon.com/forms/orbeon-form-runner > http://wiki.orbeon.com/forms/doc/developer-guide/form-runner-programme > r- > guide > > The reason we developed Form Runner was exactly so you wouldn't have > to rewrite things like PDF output yourself. Is there any chance Form > Runner can work for you? > > -Erik > > On Wed, Feb 17, 2010 at 9:23 AM, Schwartzman, Martin > <[hidden email]> wrote: >> Erik, >> >> I thought I was using Form Runner to run my (example) view.xhtml. I >> run the view.xhtml file from within the >> orbeon.war¥WEB-INF¥resources¥apps¥xforms-hello directory of my jboss >> container so I guess I don't understand what you mean when you say >> "If > >> you don't want to use Form Runner".. >> >> I've looked at the fr/print directory that you mention below and >> attempted to use a xforms:submission to run the print-form.xpl but >> nothing happens. I must be missing pieces of the puzzle. I've >> attached > >> my xforms-hello directory that I've pieced together so far. Can you >> tell me what else I'm missing or point me to some additional >> documentation or examples. >> >> Thanks in advance. >> >> Martin >> >> -----Original Message----- >> From: [hidden email] [mailto:[hidden email]] On Behalf Of >> Erik > >> Bruchez >> Sent: Monday, February 08, 2010 2:51 PM >> To: [hidden email] >> Subject: [ops-users] Re: RE: Re: Can a PDF of what is displayed in >> the > >> browserbe generated via the XFORM used to generate the HTML by the >> Orbeon engine? >> >> Martin, >> >> If you are not working on the source from git, this is stored in >> orbeon-form-runner.jar. >> >> -Erik >> >> On Mon, Feb 8, 2010 at 12:01 PM, Schwartzman, Martin >> <[hidden email]> wrote: >>> >>> Erik, >>> >>> I'm not finding the orbeon/WEB-INF/resources/apps/fr/print >>> >>> Am I not looking in the right place or was a directory name changed? >>> >>> Thanks. >>> >>> Martin >>> -----Original Message----- >>> From: [hidden email] [mailto:[hidden email]] On Behalf Of >>> Erik >> >>> Bruchez >>> Sent: Monday, February 08, 2010 12:19 PM >>> To: [hidden email] >>> Subject: [ops-users] Re: Can a PDF of what is displayed in the >>> browser >> >>> be generated via the XFORM used to generate the HTML by the Orbeon >>> engine? >>> >>> Martin, >>> >>> Yes, that's what Form Runner does. If you don't want to use Form >>> Runner, you will have to look at how Form Runner does it and >>> implement >> >>> something similar (with the oxf:xforms-to-xhtml processor). That's >>> under the RESOURCES/apps/fr/print directory. >>> >>> -Erik >>> >>> On Sat, Feb 6, 2010 at 11:05 AM, Schwartzman, Martin >>> <[hidden email]> wrote: >>>> >>>> I found Orbeon documentation that says "Orbeon Forms supports >>>> producing PDF either automatically by following the layout of the >>>> HTML >>> >>>> output, or by using PDF templates." I think I want the automatic > way. >>>> Can a PDF of what is displayed in the browser be generated via the >>>> XFORM that generated the browser output (submission XPL)? If so can >>>> someone point me to an example. >>>> >>>> Thanks in advance. >>>> >>>> >>>> >>>> >>>> -- >>>> 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 >>> >>> >> >> >> -- >> 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] > 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 |
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.css Is 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.css http://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 |
In reply to this post by mar
Martin,
xforms-yuicalendar-min.css is a resource generated dynamically, so it is ok if you don't see it on disk. The issue is the double /orbeon/orbeon/ prefix. Some URL rewriting issues were fixed over the last few months. What OF build are you using? -Erik 2010/2/22 Schwartzman, Martin <[hidden email]>: > 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.css > http://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 > > -----Original Message----- > From: Schwartzman, Martin [mailto:[hidden email]] > Sent: Friday, February 19, 2010 10:48 AM > To: [hidden email] > Subject: [ops-users] 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? > > Erik, > > In the print directory I spotted print-pdf-notemplate.xpl which sounds like what I want. > > I'm trying to call the print-pdf-notemplate.xpl from my slightly modified xforms-hello/view.xhtml with the following submission but nothing happens. Can you tell me the correct way to call the print-pdf-notemplate.xpl? > > <xforms:submission id="generate-pdf" > ref="xxforms:instance('fr-form-instance')" > action="/xforms-hello/generate-pdf" method="post" replace="none" /> > > > Thanks. > > Martin > > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] > Sent: Wednesday, February 17, 2010 5:48 PM > To: [hidden email] > Subject: [ops-users] 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? > > Martin, > > I dont think that there is an example besides the Form Runner print directory I pointed to. > > -Erik > > On Wed, Feb 17, 2010 at 12:43 PM, Schwartzman, Martin <[hidden email]> wrote: >> Eric, >> >> At this point I think I'm too far into the project to try to convert >> my forms to use Form Runner. Is there a simple example of how one >> would go about implementing PDF printing like the Form Runner does it >> or what files do I need to look at to figure it out. Any hints to >> speed up the process are greatly appreciated. >> >> >> Martin >> >> -----Original Message----- >> From: Erik Bruchez [mailto:[hidden email]] >> Sent: Wednesday, February 17, 2010 11:29 AM >> To: [hidden email] >> Subject: [ops-users] 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? >> >> Martin, >> >> In that case you are not using Form Runner, you are just working on >> top of the raw XForms engine. >> >> Form Runner is small but convenient (we hope) layer above that: >> >> http://www.orbeon.com/forms/orbeon-form-runner >> http://wiki.orbeon.com/forms/doc/developer-guide/form-runner-programme >> r- >> guide >> >> The reason we developed Form Runner was exactly so you wouldn't have >> to rewrite things like PDF output yourself. Is there any chance Form >> Runner can work for you? >> >> -Erik >> >> On Wed, Feb 17, 2010 at 9:23 AM, Schwartzman, Martin >> <[hidden email]> wrote: >>> Erik, >>> >>> I thought I was using Form Runner to run my (example) view.xhtml. I >>> run the view.xhtml file from within the >>> orbeon.war¥WEB-INF¥resources¥apps¥xforms-hello directory of my jboss >>> container so I guess I don't understand what you mean when you say >>> "If >> >>> you don't want to use Form Runner".. >>> >>> I've looked at the fr/print directory that you mention below and >>> attempted to use a xforms:submission to run the print-form.xpl but >>> nothing happens. I must be missing pieces of the puzzle. I've >>> attached >> >>> my xforms-hello directory that I've pieced together so far. Can you >>> tell me what else I'm missing or point me to some additional >>> documentation or examples. >>> >>> Thanks in advance. >>> >>> Martin >>> >>> -----Original Message----- >>> From: [hidden email] [mailto:[hidden email]] On Behalf Of >>> Erik >> >>> Bruchez >>> Sent: Monday, February 08, 2010 2:51 PM >>> To: [hidden email] >>> Subject: [ops-users] Re: RE: Re: Can a PDF of what is displayed in >>> the >> >>> browserbe generated via the XFORM used to generate the HTML by the >>> Orbeon engine? >>> >>> Martin, >>> >>> If you are not working on the source from git, this is stored in >>> orbeon-form-runner.jar. >>> >>> -Erik >>> >>> On Mon, Feb 8, 2010 at 12:01 PM, Schwartzman, Martin >>> <[hidden email]> wrote: >>>> >>>> Erik, >>>> >>>> I'm not finding the orbeon/WEB-INF/resources/apps/fr/print > directory? >>>> >>>> Am I not looking in the right place or was a directory name changed? >>>> >>>> Thanks. >>>> >>>> Martin >>>> -----Original Message----- >>>> From: [hidden email] [mailto:[hidden email]] On Behalf Of >>>> Erik >>> >>>> Bruchez >>>> Sent: Monday, February 08, 2010 12:19 PM >>>> To: [hidden email] >>>> Subject: [ops-users] Re: Can a PDF of what is displayed in the >>>> browser >>> >>>> be generated via the XFORM used to generate the HTML by the Orbeon >>>> engine? >>>> >>>> Martin, >>>> >>>> Yes, that's what Form Runner does. If you don't want to use Form >>>> Runner, you will have to look at how Form Runner does it and >>>> implement >>> >>>> something similar (with the oxf:xforms-to-xhtml processor). That's >>>> under the RESOURCES/apps/fr/print directory. >>>> >>>> -Erik >>>> >>>> On Sat, Feb 6, 2010 at 11:05 AM, Schwartzman, Martin >>>> <[hidden email]> wrote: >>>>> >>>>> I found Orbeon documentation that says "Orbeon Forms supports >>>>> producing PDF either automatically by following the layout of the >>>>> HTML >>>> >>>>> output, or by using PDF templates." I think I want the automatic >> way. >>>>> Can a PDF of what is displayed in the browser be generated via the >>>>> XFORM that generated the browser output (submission XPL)? If so can > >>>>> someone point me to an example. >>>>> >>>>> Thanks in advance. >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> 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 >>>> >>>> >>> >>> >>> -- >>> 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 >> >> > > > -- > 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 mar
Martin,
Ah, glad to see the first "not found" exception is gone. What I don't understand is that this works fine within Form Runner. Somehow, somebody is adding an extra "orbeon" to the path. What do you have, if anything, in your properties-local.xml? -Erik 2010/2/23 Schwartzman, Martin <[hidden email]>: > 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.css > Is 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.css > http://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 > > -- 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 |
Eric,
The first file not found is back and I'm not using the properties-local.xml file at this time. Is there some place else I can look to find out why there is an extra orbeon in the path? Thanks. Martin -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] Sent: Wednesday, February 24, 2010 12:14 PM To: [hidden email] Subject: [ops-users] Re: Trying to generate a PDF from my xform similar to the way the Form Runner does it Martin, Ah, glad to see the first "not found" exception is gone. What I don't understand is that this works fine within Form Runner. Somehow, somebody is adding an extra "orbeon" to the path. What do you have, if anything, in your properties-local.xml? -Erik 2010/2/23 Schwartzman, Martin <[hidden email]>: > 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.css > Is 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-m > in.css > http://localhost:8080/orbeon/orbeon/xforms-server/xforms-yuicalendar-m > in.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 > > -- 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 |
Martin,
This is probably added by the URL rewriter, but the puzzle is why this happens in your case and not in the Form Runner case. Is there any way you can pack a simple version of your app showing the problem? -Erik On Wed, Feb 24, 2010 at 12:41 PM, Schwartzman, Martin <[hidden email]> wrote: > Eric, > > The first file not found is back and I'm not using the properties-local.xml file at this time. Is there some place else I can look to find out why there is an extra orbeon in the path? > > Thanks. > > Martin > > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] > Sent: Wednesday, February 24, 2010 12:14 PM > To: [hidden email] > Subject: [ops-users] Re: Trying to generate a PDF from my xform similar to the way the Form Runner does it > > Martin, > > Ah, glad to see the first "not found" exception is gone. > > What I don't understand is that this works fine within Form Runner. > > Somehow, somebody is adding an extra "orbeon" to the path. > > What do you have, if anything, in your properties-local.xml? > > -Erik > > 2010/2/23 Schwartzman, Martin <[hidden email]>: >> 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.css >> Is 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-m >> in.css >> http://localhost:8080/orbeon/orbeon/xforms-server/xforms-yuicalendar-m >> in.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 >> >> > > > -- > 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 |
Eric,
I've attached a zip file that contains my xforms-pdftest directory and contents. The page-flow.xpl now calls convert.xpl. It was calling my-unroll-form.xpl. I've hard coded the <url/> element in the oxf:xslt processor. This sequence of two processors does generate html in as can be seen in the logs\orbeon.log. I'm then trying to pass that html to the print-pdf-notemplate.xpl and run it through the oxf:xhtml-to-pdf processor. There are problems with this but if it works I will try fixing the other problems (the url can't be hard coded). Thanks again. Martin -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] Sent: Wednesday, February 24, 2010 6:56 PM To: [hidden email] Subject: [ops-users] Re: RE: Re: Trying to generate a PDF from my xform similar to the way the Form Runner does it Martin, This is probably added by the URL rewriter, but the puzzle is why this happens in your case and not in the Form Runner case. Is there any way you can pack a simple version of your app showing the problem? -Erik On Wed, Feb 24, 2010 at 12:41 PM, Schwartzman, Martin <[hidden email]> wrote: > Eric, > > The first file not found is back and I'm not using the properties-local.xml file at this time. Is there some place else I can look to find out why there is an extra orbeon in the path? > > Thanks. > > Martin > > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] > Sent: Wednesday, February 24, 2010 12:14 PM > To: [hidden email] > Subject: [ops-users] Re: Trying to generate a PDF from my xform > similar to the way the Form Runner does it > > Martin, > > Ah, glad to see the first "not found" exception is gone. > > What I don't understand is that this works fine within Form Runner. > > Somehow, somebody is adding an extra "orbeon" to the path. > > What do you have, if anything, in your properties-local.xml? > > -Erik > > 2010/2/23 Schwartzman, Martin <[hidden email]>: >> 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.css >> Is 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- >> m >> in.css >> http://localhost:8080/orbeon/orbeon/xforms-server/xforms-yuicalendar- >> m in.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 >> >> > > > -- > 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 xforms-pdftest.zip (9K) Download Attachment |
In reply to this post by mar
Eric,
Any update on this issue? Thanks. Martin -----Original Message----- From: Schwartzman, Martin Sent: Thursday, February 25, 2010 9:07 AM To: '[hidden email]' Subject: RE: [ops-users] Re: RE: Re: Trying to generate a PDF from my xform similar to the way the Form Runner does it Eric, I've attached a zip file that contains my xforms-pdftest directory and contents. The page-flow.xpl now calls convert.xpl. It was calling my-unroll-form.xpl. I've hard coded the <url/> element in the oxf:xslt processor. This sequence of two processors does generate html in as can be seen in the logs\orbeon.log. I'm then trying to pass that html to the print-pdf-notemplate.xpl and run it through the oxf:xhtml-to-pdf processor. There are problems with this but if it works I will try fixing the other problems (the url can't be hard coded). Thanks again. Martin -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] Sent: Wednesday, February 24, 2010 6:56 PM To: [hidden email] Subject: [ops-users] Re: RE: Re: Trying to generate a PDF from my xform similar to the way the Form Runner does it Martin, This is probably added by the URL rewriter, but the puzzle is why this happens in your case and not in the Form Runner case. Is there any way you can pack a simple version of your app showing the problem? -Erik On Wed, Feb 24, 2010 at 12:41 PM, Schwartzman, Martin <[hidden email]> wrote: > Eric, > > The first file not found is back and I'm not using the properties-local.xml file at this time. Is there some place else I can look to find out why there is an extra orbeon in the path? > > Thanks. > > Martin > > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] > Sent: Wednesday, February 24, 2010 12:14 PM > To: [hidden email] > Subject: [ops-users] Re: Trying to generate a PDF from my xform > similar to the way the Form Runner does it > > Martin, > > Ah, glad to see the first "not found" exception is gone. > > What I don't understand is that this works fine within Form Runner. > > Somehow, somebody is adding an extra "orbeon" to the path. > > What do you have, if anything, in your properties-local.xml? > > -Erik > > 2010/2/23 Schwartzman, Martin <[hidden email]>: >> 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.css >> Is 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- >> m >> in.css >> http://localhost:8080/orbeon/orbeon/xforms-server/xforms-yuicalendar- >> m in.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 >> >> > > > -- > 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 xforms-pdftest.zip (9K) Download Attachment |
Martin,
Any success? I print PDF files using FOP and xpl/xslt (not within Form Runner). Basically click print button which calls submission. Submission sends instance data to xpl (page-flow.xml file). The xpl calls two processors - xsl and fop. PDF is generated. You have to be able to create an xsl-fo document to do this. Hope that gives you another alternative. Brian Steuhl http://BTMSoftwareSolutions.com |
Brian,
I've got 150 forms that need to be printed WYSIWYG (with current instance data) (and the forms change on a regular basis) so I would like a more generalized pdf print function that works like the one in form runner (my forms don't/will not be made to run in form runner). However, could you send me an example of your xpl that "calls two processors - xsl and fop. I will take a look at it and try things that way on a couple of forms to see if there if there might be a way to make a generalization. Thanks. Martin -----Original Message----- From: bsteuhl [mailto:[hidden email]] Sent: Sunday, February 28, 2010 8:50 PM To: [hidden email] Subject: [ops-users] Re: FW: Re: RE: Re: Trying to generate a PDF from my xform similar to the way the Form Runner does it Martin, Any success? I print PDF files using FOP and xpl/xslt (not within Form Runner). Basically click print button which calls submission. Submission sends instance data to xpl (page-flow.xml file). The xpl calls two processors - xsl and fop. PDF is generated. You have to be able to create an xsl-fo document to do this. Hope that gives you another alternative. Brian Steuhl http://BTMSoftwareSolutions.com -- View this message in context: http://n4.nabble.com/Can-a-PDF-of-what-is-displayed-in-the-browser-be-ge nerated-via-the-XFORM-used-to-generate-the-HTML-b-tp1471489p1573135.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 |
Administrator
|
Brian,
I had a quick look at your code. The reason it fails is the following: * pdf-view.xpl calls convert.xpl * convert.xpl does not retrieve a source form, but a form fully processed by the XForms engine, including URL rewriting * this means that you have in there URLs like <script src="/orbeon/ops/yui/yahoo/yahoo.js" type="text/javascript"/> * you then feed this in turn to print-pdf-notemplate.xpl * print-pdf-notemplate.xpl runs the XForms epilogue on this (probably doesn't do much since there is no XForms anymore) * then oxf:xhtml-to-pdf runs, which will try to rewrite again resources starting with /orbeon/ * so you get/orbeon/orbeon/*, which fails Right now, oxf:xhtml-to-pdf assumes that URLs in the input document have not yet been rewritten. So you should probably try to feed oxf:xhtml-to-pdf with such an input. Form Runner does things differently: it doesn't retrieve an HTML page that has already gone through URL rewriting, but instead runs a source XForms page through the XForms engine, and captures its output before it has been rewritten. -Erik On Mon, Mar 1, 2010 at 10:23 AM, Schwartzman, Martin <[hidden email]> wrote: > Brian, > > I've got 150 forms that need to be printed WYSIWYG (with current > instance data) (and the forms change on a regular basis) so I would like > a more generalized pdf print function that works like the one in form > runner (my forms don't/will not be made to run in form runner). However, > could you send me an example of your xpl that "calls two processors - > xsl and fop. I will take a look at it and try things that way on a > couple of forms to see if there if there might be a way to make a > generalization. > > Thanks. > > Martin > > -----Original Message----- > From: bsteuhl [mailto:[hidden email]] > Sent: Sunday, February 28, 2010 8:50 PM > To: [hidden email] > Subject: [ops-users] Re: FW: Re: RE: Re: Trying to generate a PDF from > my xform similar to the way the Form Runner does it > > > Martin, > > Any success? I print PDF files using FOP and xpl/xslt (not within Form > Runner). > > Basically click print button which calls submission. Submission sends > instance data to xpl (page-flow.xml file). The xpl calls two processors > - xsl and fop. PDF is generated. You have to be able to create an > xsl-fo document to do this. > > Hope that gives you another alternative. > > Brian Steuhl > http://BTMSoftwareSolutions.com > > -- > View this message in context: > http://n4.nabble.com/Can-a-PDF-of-what-is-displayed-in-the-browser-be-ge > nerated-via-the-XFORM-used-to-generate-the-HTML-b-tp1471489p1573135.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 |
Free forum by Nabble | Edit this page |