Page 1 of 1

Export Calc to PDF using command Line

Posted: Tue Oct 19, 2021 10:32 am
by UserSpie
Hey there,

I'm using openOffice on command line in order to generate PDF by using pdf from a calc file.
I use the following command line :

Code: Select all

libreoffice --headless --norestore --invisible --convert-to pdf:calc_pdf_Export --outdir devis/pdf/ '.$path.'/'.$uuid.".xlsx
The fact is the file is over 20 pages and I only want to export the first page. Do you you know if it possible to say by using command to use the command line to export only the first page and how to do this ?

Thank you.

Re: Export Calc to PDF using command Line

Posted: Tue Oct 19, 2021 4:55 pm
by Villeroy
A "page" is what would be printed on one side of a single sheet of paper. Do you mean "sheet"? Hidden sheets are not printed nor exported to pdf.
If you really mean a print page, you have to define a print area.