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?

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-tp1471489p1565373.html

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