B4J Question jPOI: from docx to PDF

udg

Expert
Licensed User
Longtime User
Hi all,
now that I can substitute runtime text in a docx "model" document, I'd like to output it as a PDF (rather than docx, or even in addition to the docx version)
I found a few references but I'm not sure whether they're still valid and how to convert them to B4J code.
Here's a link to StackOverflow
This one is very similar
Apache POI pages seems to suggest the use of FOP.

I'd like an all-POI solution (from doc assembling to PDF saving), but if it gets too complicated there are many alternatives, so I don't consider it critical.
It would be nice to learn how to drive the whole process in code.

udg
 
Last edited:

udg

Expert
Licensed User
Longtime User
Thank you very much for your offer.
I don't think it is really a need (and at this time I don't know what's installed on my friend's PC).
I'll look at the solution in your link to have a better understanding of what is involved. What I hoped for was something already part of POI, able to output a PDF instead of a docx file. A simple method eventually named "writePDF" which assumed some standard config for the output. Surely they had good reasons to treat it as an export rather than a "standard" output format.
 
Upvote 0
Top