Convert PDF to ODT (OpenDocument Text)

Converting PDF to ODT means recovering the text, images, and as much layout as possible from a fixed-layout PDF and saving it as an editable OpenDocument Text file, the native format of LibreOffice Writer. Because PDF stores positioned text runs rather than paragraphs and styles, no converter restores the original document structure perfectly. This page explains the reliable routes — LibreOffice Draw's built-in PDF import, a clipboard rebuild into Writer, and a Word round-trip — and exactly where each one loses fidelity.

Why there is no one-click converter on this page

Producing a well-structured ODT requires layout analysis — grouping thousands of positioned text runs back into paragraphs, lists, and tables — plus an OpenDocument writer. Browsers expose neither, so a trustworthy local conversion is not possible in a web page; the desktop methods below do it reliably instead.

Disclosure: this page contains affiliate placeholder links. If they were live, we could earn a commission at no extra cost to you.

AFFILIATE PLACEHOLDER: Recommended desktop PDF suite (placeholder link)

How to convert a PDF to ODT (step by step)

Method 1: LibreOffice Draw import, then rebuild in Writer

  1. Open the PDF in LibreOffice Draw. Start LibreOffice, choose File → Open, and select the PDF. LibreOffice routes PDFs to Draw, which converts each page into a drawing with one text frame per text block.
  2. Select and copy the text. On each page press Ctrl+A to select every frame, then Ctrl+C to copy.
  3. Paste into LibreOffice Writer. Open a new Writer document and paste with Ctrl+Shift+V, choosing Unformatted text or Formatted text (RTF). Reflow and restyle the paragraphs.
  4. Save as ODT. Choose File → Save As, pick ODF Text Document (.odt), and save.

Draw's import is excellent for seeing exactly what the PDF contains and for grabbing images at full quality, but it deliberately preserves position over structure: a three-column newsletter arrives as dozens of independent frames, not three linked columns.

Method 2: Round-trip through a PDF-to-Word converter

  1. Convert the PDF to .docx first — Microsoft Word's File → Open on a PDF triggers its built-in reflow converter, which is currently the best free structure-recovery engine (see our PDF to Word guide).
  2. Open the resulting .docx in LibreOffice Writer.
  3. Save as ODF Text Document (.odt). Writer maps Word paragraph and character styles onto ODF equivalents almost losslessly.

This two-hop route usually beats Draw for multi-page prose because Word's converter reconstructs paragraphs, headings, and tables that Draw leaves as loose frames.

Method 3: Command line with LibreOffice headless (bulk, low fidelity)

For batch jobs, LibreOffice can convert on the command line: soffice --headless --infilter="draw_pdf_import" --convert-to odt yourfile.pdf. Be aware this produces an ODT wrapped around Draw-style frames rather than flowing text — acceptable for archiving, poor for editing.

How it works

A PDF page is a content stream of drawing operators: "set font Helvetica 11pt, move to coordinate (72, 640), show the glyph string 'Quar terly'". There are no paragraph objects, no style sheet, and often not even reliable word boundaries — kerning adjustments can split a word into several show-text operations. An ODT file is the opposite: a ZIP archive containing content.xml, where text lives in semantic <text:p> paragraph elements referencing named styles in styles.xml.

Conversion therefore requires inference. The importer sorts text runs by position, guesses which runs form lines (similar baselines), which lines form paragraphs (consistent leading and left edge), and which blocks form columns or tables. LibreOffice's draw_pdf_import filter skips most of that inference: it maps each detected text block to a Draw text frame at its original coordinates, which is why the result looks right but edits poorly. Word's PDF reflow engine runs the full analysis, which is why the round-trip through .docx yields better paragraphs.

Fonts add a second lossy step. PDFs usually embed subset fonts (only the glyphs actually used, under names like ABCDEF+Minion). ODT cannot rely on those subsets, so the converter substitutes the closest installed font, and line breaks shift when metrics differ. Scanned PDFs are the extreme case: they contain only images, so every method on this page yields zero text until you run OCR.

Worked example: a 12-page project report

We converted a 12-page, 840 KB report (two heading levels, 14 paragraphs per page, three tables, five PNG charts) exported from Google Docs. Opening it in LibreOffice Draw 24.8 took 4 seconds and produced 12 drawing pages containing 311 text frames. Copying everything into Writer as unformatted text gave a 19 KB ODT, but all three tables collapsed into tab-separated lines and every heading lost its style. The Word round-trip did better: Word rebuilt 96 of 168 paragraphs correctly, recovered two of the three tables as real table objects, and after saving from Writer the final ODT was 412 KB with all five charts intact. Total cleanup time: about 15 minutes, versus roughly 90 minutes to retype.

Frequently asked questions

Can LibreOffice open a PDF directly as an ODT?

No — LibreOffice opens PDFs in Draw, its drawing application, not in Writer. Each page becomes a graphic layout of text frames, so you must move the text into Writer yourself to get a real .odt document.

Why does my PDF text come out as one line per frame in Draw?

PDF stores text as positioned runs, not paragraphs, so Draw creates a separate frame for each block it can detect — often one per line. Pasting into Writer as unformatted text and rejoining lines is the practical fix.

Does converting PDF to ODT keep images?

Draw imports embedded raster images as picture objects, and you can copy them into Writer alongside the text. Vector artwork usually imports as grouped shapes, which Writer accepts but may render differently.

What happens with a scanned PDF?

A scanned PDF contains page images and no text objects, so Draw imports pictures and nothing selectable. You need OCR software such as Tesseract or the OCR built into some PDF suites before any text can reach an ODT file.

Is PDF to ODT conversion ever perfect?

No tool restores the original paragraph, style, and section structure exactly, because PDF discards it at export time. Expect to spend a few minutes reflowing text and reapplying styles for every ten pages or so.

Related tools