Re: RE: Re: Trying to generate a PDF from my xform similar to the way the Form Runner does it

Posted by Erik Bruchez-3 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-tp1471489p1568412.html

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