Print PDF of the filled Orbeon form

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Print PDF of the filled Orbeon form

kushp
I have an Orbeon form which contains various controls including the Attachment control. After filling the form, when I try to print it using the 'pdf' button process, the form gets printed successfully, but there are no attachments found in the print copy. However, there's a blank page following the printed form. I've attached both the screenshot of the Orbeon form and the printed PDF.

How to print the attached attachments along with the Orbeon form.

Also, I want to customize the behavior of the PDF button process. It should be: On clicking the PDF button, the pdf should be directly downloaded with the name same as the form name. Ideally, the pdf is opened in the same window. Due to this, the filled form is lost. When going back, a new copy of the form is produced.


--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

filled form.pdf (18K) Download Attachment
full form.png (182K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Print PDF of the filled Orbeon form

Alessandro  Vernet
Administrator
Hi Kush,

How would you like attachments to be handled in the PDF? Image attachments
are shown in the PDF. I imagine that PDF attachement could add "pages" to
the document?

Regarding the filename, you set it with the `oxf.fr.detail.pdf.filename.*.*`
property. For more on this, see the "Custom PDF filename" section on:

https://doc.orbeon.com/configuration/properties/form-runner-detail-page.html

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Print PDF of the filled Orbeon form

Alessandro  Vernet
Administrator
Hi Kush,

Did you manage to do what you were aiming for with the PDF, including
setting the name of the generated file, per my earlier message?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Print PDF of the filled Orbeon form

kushp
Hi Alex,

In my use case, there are no image attachments. But there are file controls that only allow PDF files to be uploaded. So my objective is when I try to print the form, I want all of the uploaded attachments to be appended to the printed Orbeon PDF. I've attached a PDF, that is filled by Orbeon webform. But the role of Orbeon is only to collect the data. The PDF is printed using Apache FOP. In this PDF, the data is provided in XML document and the XSL stylesheet is used to design the template. But note the attachments that are appended to the PDF in serial order. 

I want to configure Orbeon to print the form along with the uploaded attachments.

- Kush

On Friday, May 25, 2018 at 4:52:29 AM UTC+5:30, Alessandro Vernet wrote:
Hi Kush,

Did you manage to do what you were aiming for with the PDF, including
setting the name of the generated file, per my earlier message?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

demo_form.pdf (58K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Print PDF of the filled Orbeon form

kushp
In reply to this post by Alessandro Vernet
The default behavior of the Orbeon Print process is to open the PDF file in the same browser tab. I want to obtain this file in code rather than displaying in the browser.

On Friday, May 25, 2018 at 4:52:29 AM UTC+5:30, Alessandro Vernet wrote:
Hi Kush,

Did you manage to do what you were aiming for with the PDF, including
setting the name of the generated file, per my earlier message?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].