Export Calc to PDF using command Line

Discuss the spreadsheet application
Post Reply
UserSpie
Posts: 1
Joined: Tue Oct 19, 2021 10:27 am

Export Calc to PDF using command Line

Post 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.
OpenOffice 2.4 on Ubuntu 9.04
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Export Calc to PDF using command Line

Post 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.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply