Clioos › Guides › Excel to PDF

How to Convert Excel to PDF

By Clioos Team

If you have Excel, File > Export > PDF is the easiest path. Without Excel, LibreOffice does the same job free: one command turns a spreadsheet into a PDF that keeps the table, the numbers, and the layout. Here is the exact flow, tested.

At a glance

Steps

  1. Install LibreOffice (free from libreoffice.org) or check it is there: soffice --version. The test used LibreOffice 24.2.7.2.
  2. Convert: soffice --headless --convert-to pdf your-file.xlsx — the PDF appears next to the spreadsheet, same name, .pdf ending.
  3. Check the result: pdftotext your-file.pdf - should show your table. On the test file, a 5-row sheet became a 1-page PDF.
  4. If a wide sheet splits across pages, open it in LibreOffice Calc, set Format > Page Style > Landscape (or Fit to page), save, and convert again.
  5. For many files at once, pass them all in one command: soffice --headless --convert-to pdf *.xlsx.

Worked example (tested 6 November 2026)

I tested this with a small .xlsx made with openpyxl (4,983 bytes: a Date / Item / Amount header plus 5 rows). soffice --headless --convert-to pdf sample.xlsx produced a 1-page PDF of 9,172 bytes, and pdftotext read the table back — dates, items, and amounts all in place.

DateItemAmount
2026-10-01Paper12.50
2026-10-03Ink24.99
2026-10-05Stapler8.75
2026-10-08Folders5.20
2026-10-10Pens3.40

What it can't do (tested)

Free alternatives, honestly compared

PDF Probe converts in the opposite direction — PDF tables and bank statements to Excel. If that is the job, see How to Convert PDF to Excel.

Frequently asked questions

Will my formulas still work in the PDF?

No. A PDF is a snapshot: it shows each formula's current result as plain text. If the numbers change, convert again.

Is LibreOffice really free?

Yes, LibreOffice is free and open source, for Windows, macOS, and Linux. There is no account, no trial, and no page limit.

Can I convert many spreadsheets at once?

Yes. Pass several files — or *.xlsx — to the same soffice command and it converts each one in turn.

Do I need Excel installed?

No. LibreOffice reads .xlsx files on its own. You only need Excel if you want Excel's own export, which is the most faithful option for complex files.


Related guides: How to Convert PDF to Excel · How to Convert PDF to CSV · How to Convert PDF to Word · How to Compress a PDF · All guides · Tool: PDF Probe