Controlling PDF Export Paper Size in LibreOffice Headless Mode

Hi,

I have a .docx file that contains a table with images. When I open the file in the LibreOffice UI, the table and consequently the image get truncated due to the size is more than the default page size.

We are using LibreOffice in --headless mode to convert the document to PDF, Since the export defaults to a paper size of 8.5 x 11 inches, the same truncation issue occurs in the exported PDF as well.
I searched existing questions on ask.libreoffice.org but couldn’t get the correct answer.

Is there a way to control or specify the paper size for PDF export via the command-line interface in LibreOffice?

Best regards,
Satya

1 Like

Test_Image Issue in Table.docx (54.0 KB)
Attaching the sample file.