PDF generation issue in Orbeon

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

PDF generation issue in Orbeon

rovsh
Hello,

In our application before XForms files are sent to Orbeon, they are "decorated" with text labels (from database) for each control. There is no problem with this approach if we display XForms rendered by Orbeon in browser. However, when we click on "PDF" button, generated PDF file is empty (just one blank page). If we do not use this "decoration" and text labels are inside original XForms file, then PDFs are generated correctly.
Can you please tell how are PDFs are actually generated in XForms (created using Form Builder)?
What may be the issues that prevent us from generating correct PDFs?

Please let me know if something is not clear.

Thanks in advance.

Best regards,
- Rovsh
Reply | Threaded
Open this post in threaded view
|

Re: PDF generation issue in Orbeon

Erik Bruchez
Administrator
Rovsh,

PDFs go through a library called Flying Saucer, which converts XHTML+CSS to PDF.

We have CSS rules which make sure that in print mode, certain things are made visible:

https://github.com/orbeon/orbeon-forms/blob/904df27c29b2d62e617e3832434d05ba51c6e119/src/resources/apps/fr/style/form-runner-base.less#L555

So that might be related to CSS. But it could also be some other kind of error. Do you see any error in the logs?

-Erik