Here there are an example of saving an OpenOffice file to PDF. I’m using similar code to save Calc files to PDF. (It’s enough to change the property writer_pdf_Export to calc_pdf_Export.)
Unfortunately, the code doesn’t take into account the print area defined in the original file.
How can I do that?
Extending my previous code (which is not as clean as it could be) I would try something like this (note I haven’t tested it yet). The third parameter specifies the exported range as
TRectvariable: