Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Topic-icon Question How to generate PDF documents

More
05 Dec 2016 17:02 - 05 Dec 2016 17:23 #1 by Josserand BRINON
How to generate PDF documents was created by Josserand BRINON
Hi,

A new project demands to generate dynamic PDF documents.
Is there anybody who knows if we can do that with Stambia?

I tried to find informations about python libraries (with the aim of using jython throw Stambia), such as pyPdf .
But that library doesn't seem to do what we need:
- write text in a specific area,
- generate arrays with a dynanic number of rows.

There is also Reportlab , for which I've found this example .
Moreover, the version of jython embedded in Stambia seems to be 2.2.1. Reportlab prerequisites 2.7.

Any suggestions?
Thanks.
Last edit: 05 Dec 2016 17:23 by Josserand BRINON.
More
06 Dec 2016 14:25 #2 by risson
Replied by risson on topic How to generate PDF documents
Hello
as far as i know, stambia does not have a built-on PDF generation module.
I would say that using an external tool or library and invoke it from Stambia can be a good solution.

LibreOffice also has a command-line mode for converting documents to PDF.
More
09 Dec 2016 11:30 #3 by Josserand BRINON
Replied by Josserand BRINON on topic How to generate PDF documents
Thank you @risson.
I took a look on LibreOffice and tested the comand-line.
So, we thought about writing an XLS file with Stambia and convert it with command-line (in Stambia).
The conversion works, but it is impossible to set the PDF (landscape, fit to one page, etc.).

But never mind, the project scope has moved, and we don't need to generate PDF file anymore :whistle:

Anyway, I'm still curious to know how to do that...