Clioos › Guides › Word to PDF

How to Convert Word to PDF

By Clioos Team

If you have Word, File > Save As > PDF is the easiest path. Without Word, LibreOffice does the same job free: one command turns a .docx into a PDF that keeps the headings, the table, 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.docx — the PDF appears next to the document, same name, .pdf ending.
  3. Check the result: pdftotext your-file.pdf - should show your headings and table. On the test file, a .docx with a heading and a 3 by 3 table became a 1-page PDF.
  4. If text shifts or wraps differently, the document uses a font LibreOffice does not have. Install the font, or change the font in the document and convert again.
  5. For many files at once, pass them all in one command: soffice --headless --convert-to pdf *.docx.

Worked example (tested 6 November 2026)

I tested this with a .docx made with python-docx (36,840 bytes: a level-1 heading, one paragraph, and a 3 by 3 table). soffice --headless --convert-to pdf sample.docx produced a 1-page PDF of 19,422 bytes, and pdftotext read it back — heading, paragraph, and all 9 table cells in place.

What it can't do (tested)

Free alternatives, honestly compared

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

Frequently asked questions

Will the layout change?

For ordinary documents — headings, paragraphs, tables — no. For documents with unusual fonts, text boxes, or tracked changes, check the PDF: fonts may substitute and tracked changes disappear.

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 documents at once?

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

Do I need Word installed?

No. LibreOffice reads .docx files on its own. You only need Word if you want Word'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 Word · How to Convert Excel to PDF · How to Edit a PDF · All guides · Tool: PDF Probe