Header image not appearing after converting .xlxs to pdf

We have an image and a title on the header of the .xlsx file as shown on this image (print view mode) :

When we convert the .xlsx to pdf running the following command:
soffice --headless --convert-to pdf --outdir /home/output /home/input/file.xlsx

It generates the pdf but the image is not showing in the header:

How can we solve this?

Please answer the following questions:

  • Which OS and LibreOffice version do you use?
  • In what format is your background image saved?
  • Why don’t you save the file as ODS-type with LibreOffice?
  • Can you anonymize your file and upload it here?

To upload, please edit your initial question.

Don’t answer your initial question if it is not a real answer!

Image formats such as .png, .jpg, .jpeg are supported universally. Try converting the files through online converters and check if your problem resolved or you can use funny discord bots , the best tool !

I’ve tested now with Convert XLSX files (Excel) to PDF online & free and it worked ! Why its not working with libreoffice? I need to do this programatically because its our software that is calling the command …


Always create and save your files in LibreOffice and save them in ODF format (ODT, ODS, etc.).
Always keep these files as their source. If you need other formats for distribution to partners, you can open an ODF file and save and distribute another format with ″ Save as… ″.

This way, you always have working files available in your system environment.



Please report the behavior as a bug in Bugzilla .

Please announce the link from the bug here.

To do this, edit your initial question. Thank you.