Formats

Converting PDF to Markdown with MarkItDown

Updated 2026-11-15·Upstream source ↗
Markdown view

MarkItDown extracts the text of a PDF well and its structure poorly, because a PDF stores positioned characters, not headings or tables. That is fine for feeding a language model or a search index, and it is the reason to read the rest of this page if you need headings or tables. We ran 24 behaviour tests on files from our corpus and our own, and a controlled experiment on 432 generated tables.

Short answer

Install the extra and convert:

Command
pip install "markitdown[pdf]"
Command
markitdown pdf-text.pdf -o pdf-text.md

Expect clean text, no # headings, tables only when columns line up, and nothing from scanned pages.

Tested with markitdown 0.1.9 · Python 3.13 · markitdown[all] 0.1.9 (plus 0.1.5 and 0.1.6 for memory) · Linux lab; the PDF corpus also ran on Windows, macOS and Ubuntu runners (T03, T05) · 2026-11-15 · evidence: office-features.csv, pdf-table-detection.csv, pdf-table-rules.csv, pdf-table-matrix.csv

What you get from a PDF, at a glance

PDF behaviours, one test file each, markitdown 0.1.9
BehaviourResultWhat came outNote
Headings (large bold text)lostMain title of the report↵↵1. A section heading↵↵Body text line number 1 for the section above.↵Body text line number 2 for the section above.↵Body text line number 3 for the section above.↵Body text line number 4 for the section aNo # headings: font size is not analysed.
Bulleted and numbered listschanged(cid:127) first bullet↵(cid:127) second bullet↵1. numbered one↵2. numbered two↵↵Check bullets and numbers in the excerpt.
Two-column pagechangedLEFT1 text of the left column↵LEFT2 text of the left column↵LEFT3 text of the left column↵LEFT4 text of the left column↵LEFT5 text of the left column↵LEFT6 text of the left column↵LEFT7 text of the left column↵LEFT8 text of the leReading order in the output: L1 L2 L3 L4 L5 L6 L7 L8 … (columns kept apart); first left line present: True.
Header, footer and page numbers on every pagechangedRUNNING HEADER Field Station Report↵↵Page 1 body line 1.↵Page 1 body line 2.↵Page 1 body line 3.↵Page 1 body line 4.↵Page 1 body line 5.↵↵Page 1 of 3 RUNNING FOOTER↵↵ RUNNING HEADER Field Station Report↵↵Page 2 body line 1.↵Page 2Header appears 3 times and footer 3 times in the output; page breaks: a form feed or marker is present.
Hyphenated line endschangedThis sentence ends with a hyphen-↵ated word at the line end and continues.↵↵A second para-↵graph also breaks inside a word.↵↵Check whether the word is rejoined.
(cid:n) characters from bulletschangedPilot Report: Field Station Alpha↵↵1. Summary↵Rainfall across the three stations rose steadily through the spring. Sensors reported every ten↵minutes and the readings were averaged per day. Rainfall across the three stations rose Glyphs without a Unicode mapping come out as (cid:127).
CJK textkept试点报告:阿尔法观测站↵↵降雨量同比增长百分之十二。传感器正常运行时间达到百分之九十九。↵↵東京の観測所では雨量が増加しました。↵↵
Cyrillic, Greek and ligatureskeptПривет, мир — кириллица в PDF↵↵Ελληνικά: Καλημέρα κόσμε↵↵Ligatures: office, fluffy, affinity (fi ffi fl)↵↵
Rotated pagelostNormal page↵↵ T↵↵h↵↵i↵↵s↵↵p↵↵a↵↵g↵↵e↵↵i↵↵s↵↵r↵↵o↵↵t↵↵a↵↵t↵↵e↵↵d↵↵9↵↵0↵↵d↵↵e↵↵g↵↵r↵↵e↵↵e↵↵s↵↵The rotated page comes out one letter per line.
Scanned page (image only)lostExit code 0 and nothing printed: there is no text layer and no OCR.
Mixed text and scanned pageschangedPage one has real text.↵↵Only the pages with a text layer produce text.
Encrypted with a user passwordlostPDFPasswordIncorrect: PDFPasswordIncorrect with an empty message; no password option.
Owner password only (opens without a password)losterror: 'L' format requires 0 <= number <= 4294967295Our test file raised a struct error while reading its permission flags; this is one file written by our generator, not a general statement about owner-password files.
Slightly damaged filekeptPilot Report: Field Station Alpha↵↵1. Summary↵Rainfall across the three stations rose steadily through the spring. Sensors reported every ten↵minutes and the readings were averaged per day. Rainfall across the three stations rose Our damaged file (truncated trailer) was still read in full.
Zero-byte filelostPDFSyntaxError: No /Root object! - Is this really a PDF?
Table with ruled borderschangedMeasurements (bordered table)↵Rainfall across the three stations rose steadily through the spring. Sensors reported every ten↵minutes and the readings were averaged per day.↵↵Station Rainfall (mm) Uptime Notes↵↵Alpha↵↵412.5↵↵99.2%No pipe table was detected.
Table without borderschangedMeasurements (borderless table)↵Rainfall across the three stations rose steadily through the spring. Sensors reported every ten↵minutes and the readings were averaged per day.↵| Station | Rainfall (mm) | Uptime | Notes |↵| -A pipe table was detected.
Table with merged cellschangedMerged header↵↵a↵↵1↵↵b↵↵2↵↵c↵↵3↵↵No pipe table was detected.
Table spanning two pageschangedTable across two pages↵↵Row Value Note↵↵1↵↵2↵↵3↵↵4↵↵5↵↵6↵↵7↵↵8↵↵9↵↵10↵↵11↵↵12↵↵13↵↵14↵↵15↵↵16↵↵17↵↵18↵↵19↵↵20↵↵21↵↵22↵↵23↵↵24↵↵25↵↵26↵↵27↵↵28↵↵29↵↵30↵↵31↵↵32↵↵33↵↵34↵↵35↵↵3.5↵↵7.0↵↵10.5↵↵14.0↵↵17.5↵↵21.0↵↵24.5↵↵28.0↵↵31.5↵↵35.0↵↵3No pipe table was detected.
Wide 12-column tablechangedWide table↵| C0 C1 | C2 C3 | C4 C5 | C6 C7 | C8 C9 | C10 C11 |↵| --------- | --------- | --------- | --------- | --------- | ----------- |↵| r1c0 r1c1 | r1c2 r1c3 | r1c4 r1c5 | r1c6 r1c7 | r1c8 r1c9 | r1c10A pipe table was detected.
PDF exported from WordchangedPilot Report: Field Station Alpha↵1. Summary↵This report covers three sites during spring 2026 with underlined and struck text.↵1.1 Key findings↵ Rainfall rose 12% year on year↵ Sensor uptime reached 99.2%↵ Two stations need neA pipe table was detected.
Same document, PDF made by chromiumchangedProducer test↵↵1. Summary↵↵Rainfall rose steadily through spring.↵↵first bullet↵second bullet↵↵Station Rainfall Notes↵↵Alpha↵↵412.5↵↵Bravo↵↵388.0↵↵ok↵↵low↵↵headings: 0; table detected: no; bullets: 0 markers or cid; characters: 156
Same document, PDF made by libreofficechangedProducer test↵1. Summary↵Rainfall rose steadily through spring.↵• first bullet↵• second bullet↵| Station | Rainfall | Notes |↵| ------- | -------- | ----- |↵| Alpha | 412.5 | ok |↵| Bravo | 388.0 | low |headings: 0; table detected: yes; bullets: 2 markers or cid; characters: 218
Same document, PDF made by reportlabchangedProducer test↵1. Summary↵Rainfall rose steadily through spring.↵(cid:127) first bullet↵(cid:127) second bullet↵| Station | Rainfall | Notes |↵| ------- | -------- | ----- |↵| Alpha | 412.5 | ok |↵| Bravo | 388.0 | lheadings: 0; table detected: yes; bullets: 2 markers or cid; characters: 236
PDF behaviours, one test file each, markitdown 0.1.9 Source: Test T06 · Linux lab · 2026-11-15 · office-features.csv · Download CSV

See it on a real page

Our report as a PDF, then a page of a US federal regulation (public domain). Same command, and anyone can download the files:

2 headings → 2 changed · 1 paragraph → 1 kept · 1 list → 1 changed

Input · pdf-text.pdf

Page image of pdf-text.pdf, the input document

Output · markitdown pdf-text.pdf

Pilot Report: Field Station Alpha
 
1. Summary
Rainfall across the three stations rose steadily through the spring. Sensors reported every ten
minutes and the readings were averaged per day. Rainfall across the three stations rose steadily
through the spring. Sensors reported every ten minutes and the readings were averaged per day.
Rainfall across the three stations rose steadily through the spring. Sensors reported every ten
minutes and the readings were averaged per day.
 
1.1 Key findings
 
Rainfall rose 12% year on year
 
Sensor uptime reached 99.2%
 
Two stations need new batteries
 
2. Measurements
Rainfall across the three stations rose steadily through the spring. Sensors reported every ten
minutes and the readings were averaged per day. Rainfall across the three stations rose steadily
through the spring. Sensors reported every ten minutes and the readings were averaged per day.
 
(cid:127)
(cid:127)
(cid:127)
 
  1. changed heading becomes plain text: Pilot Report: Field Station Alpha
  2. kept paragraph: Rainfall across the three stations rose
  3. changed list marker lost: Rainfall rose 12% year on year
  4. changed heading becomes plain text: 2. Measurements
markitdown 0.1.9 · Linux (lab container) · 2026-11-15 · proof data

1 list → 1 changed · 1 paragraph → 1 kept

Input · real-pdf-cfr-21-sec-1-1.pdf

Page image of real-pdf-cfr-21-sec-1-1.pdf, the input document

Output · markitdown real-pdf-cfr-21-sec-1-1.pdf

Food and Drug Administration, HHS
 
§ 1.3
 
WAIVERS
 
1.1405 Under  what  circumstances  will  FDA
waive one or more of the requirements of
this subpart for an individual entity or a
type of entity?
 
1.1410 When  will  FDA  consider  whether  to
waive a requirement of this subpart?
1.1415 How may I request a waiver for an in-
 
dividual entity?
 
1.1420 What  process  applies  to  a  request  for
 
a waiver for an individual entity?
 
1.1425 What  must  be  included  in  a  petition
requesting a waiver for a type of entity?
1.1430 What  information  submitted  in  a  pe-
tition  requesting  a  waiver  for  a  type  of
entity,  or  information  in  comments  on
such a petition, is publicly available?
1.1435 What process applies to a petition re-
questing a waiver for a type of entity?
1.1440 What  process  will  FDA  follow  when
waiving a requirement of this subpart on
our own initiative?
 
1.1445 Under  what  circumstances  may  FDA
 
modify or revoke a waiver?
 
1.1450 What  procedures  apply  if  FDA  ten-
tatively determines that a waiver should
be modified or revoked?
 
RECORDS MAINTENANCE AND AVAILABILITY
 
1.1455 How  must  records  required  by  this
subpart  be  maintained  and  made  avail-
able?
 
CONSEQUENCES OF FAILURE TO COMPLY
 
1.1460 What  consequences  could  result  from
failing  to  comply  with  the  requirements
of this subpart?
 
UPDATING THE FOOD TRACEABILITY LIST
 
1.1465 How  will  FDA  update  the  Food
 
Traceability List?
 
AUTHORITY:  15  U.S.C.  1333,  1453,  1454,  1455,
4402;  19  U.S.C.  1490,  1491;  21  U.S.C.  321,  331,
332, 333, 334, 335a, 342, 343, 350c, 350d, 350j, 352,
355,  360b,  360ccc,  360ccc–1,  360ccc–2,  362,  371,
374, 381, 382, 384a, 387, 387a, 387c, 393, and 2223;
42 U.S.C. 216, 241, 243, 262, 264, 271.
 
SOURCE:  42  FR  15553,  Mar.  22,  1977,  unless
 
otherwise noted.
 
Subpart A—General Provisions
 
§ 1.1 General.
 
(a) The provisions of regulations pro-
mulgated  under  the  Federal  Food,
Drug, and Cosmetic Act with respect to
the doing of any act shall be applicable
also  to  the  causing  of  such  act  to  be
done.
 
(b)  The  definitions  and  interpreta-
tions of terms contained in sections 201
and 900 of the Federal Food, Drug, and
 
Cosmetic  Act  (21  U.S.C.  321  and  387)
shall  be  applicable  also  to  such  terms
when  used  in  regulations  promulgated
under that act.
 
in
 
(c)  The  definition  of  package  in  § 1.20
and of principal display panel in §§ 101.1,
201.60,  501.1,  701.10  and  801.60  of  this
chapter;  and  the  requirements  per-
taining  to  uniform  location,  lack  of
qualification, and separation of the net
quantity  declaration
§§ 101.7(f),
201.62(e), 501.105(f), 701.13(f) and 801.62(e)
of  this  chapter  to  type  size  require-
ments  for  net  quantity  declaration  in
§§ 101.7(i),  201.62(h),  501.105(i),  701.13(i)
and  801.62(h)  of  this  chapter,  to  initial
statement  of  ounces  in  the  dual  dec-
laration  of  net  quantity  in  §§ 101.7(j)
and  (m),  201.62(i)  and  (k),  501.105(j)  and
(m),  701.13(j)  and  (m)  and  801.62(i)  and
(k) of this chapter, to initial statement
of inches in declaration of net quantity
in §§ 201.62(m), 701.13(o) and 801.62(m) of
this  chapter,  to  initial  statement  of
square  inches  in  declaration  of  net
quantity  in  §§ 201.62(n),  701.13(p)  and
801.62(n)  of  this  chapter,  to  prohibition
of  certain  supplemental  net  quantity
statements
201.62(o),
501.105(o),  701.13(q)  and  801.62(o)  of  this
chapter,  and  to  servings  representa-
tions  in  § 501.8  of  this  chapter  are  pro-
vided  for  solely  by  the  Fair  Packaging
and  Labeling  Act.  The  other  require-
ments  part  of  this  part  are  issued
under both the Fair Packaging and La-
beling Act and the Federal Food, Drug,
and  Cosmetic  Act,  or  by  the  latter  act
solely, and are not limited in their ap-
plication  by  section  10  of  the  Fair
Packaging and Labeling Act.
 
§§ 101.7(o),
 
in
 
[42  FR  15553,  Mar.  22,  1977,  as  amended  at  58
FR  17085,  Apr.  1,  1993;  75  FR  73953,  Nov.  30,
2010;  78  FR  69543,  Nov.  20,  2013;  81  FR  59131,
Aug. 29, 2016]
 
§ 1.3 Definitions.
 
(a)  Labeling  includes  all  written,
printed,  or  graphic  matter  accom-
panying  an  article  at  any  time  while
such  article  is  in  interstate  commerce
or held for sale after shipment or deliv-
ery in interstate commerce.
 
(b)  Label  means  any  display  of  writ-
ten,  printed,  or  graphic  matter  on  the
immediate  container  of  any  article,  or
 
11
 
VerDate Sep<11>2014  14:33 Jun 27, 2023 Jkt 259071 PO 00000 Frm 00021 Fmt 8010 Sfmt 8010 Q:\21\21V1.TXT PC31
 
R
E
L
L
I
T
S
D
h
t
i
 
I
 
w
3
L
6
H
6
K
C
P
A
L
n
o
 
i
 
n
i
t
t
a
r
f
s
 
 
  1. changed list marker lost: 1.1410 When will FDA consider whethe
  2. kept paragraph: AUTHORITY: 15 U.S.C. 1333
markitdown 0.1.9 · Linux (lab container) · 2026-11-15 · proof data

Why your PDF has no headings

A PDF has no headings to extract

Big bold text in a PDF is only big bold text. The file records where each character goes, not "this is a heading".

What MarkItDown does instead

It reads characters and positions with pdfminer.six and pdfplumber (documented at pdfplumber.dev, another site of ours) and writes lines of text. It does not analyse font sizes: our test page with a 24 pt title, a 16 pt heading and 11 pt body text came out as four plain lines:

Headings by font size
Main title of the report

1. A section heading

Body text line number 1 for the section above.
Body text line number 2 for the section above.
Body text line number 3 for the section above.
Body text line number 4 for the section above.

pdf-P01.md · 237 bytes output (.md)

Can you get headings back?

Layout-model tools can (comparison); Azure Document Intelligence is described in the upstream documentation and we did not test it; or ask a language model to restore the structure from the text. We did not measure these routes here.

Tables: when they work and when they don't

The rule we observed

MarkItDown 0.1.5 and later detect a table from aligned words, not from drawn lines. We drew the same grid of words in 432 PDFs, with and without ruled borders, varying columns, rows, cell length and the amount of paragraph text above, and recorded which came out as a pipe table:

Share of generated PDFs in which a table was detected, by factor
FactorValueDetectedOfRate
Borders (ruled lines drawn or not)unruled8821641%
Borders (ruled lines drawn or not)ruled8821641%
Columns20720%
Columns3447261%
Columns4447261%
Columns6447261%
Columns8227231%
Columns12227231%
Cell length (short 3 characters, medium 7 to 9, long up to 34)short11014476%
Cell length (short 3 characters, medium 7 to 9, long up to 34)medium6614446%
Cell length (short 3 characters, medium 7 to 9, long up to 34)long01440%
Rows23210830%
Rows54810844%
Rows104810844%
Rows304810844%
Lines of paragraph text above the table06414444%
Lines of paragraph text above the table56414444%
Lines of paragraph text above the table204814433%
Share of generated PDFs in which a table was detected, by factor Source: Test T06 · 432 generated PDFs · markitdown 0.1.9 · pdf-table-rules.csv · Download CSV
  • Borders make no difference (41% each way).
  • Two columns are never a table; three or more are.
  • Long cells are never a table (34 characters); eight or twelve columns need short cells.
  • A table must be a fair share of the page: two rows under 20 lines of text were not detected, two rows under 5 lines were (the source requires at least 20% of the lines to be table rows).
Detected by columns and cell length (22/24: the two missing cases are the tiny table under 20 text lines)
ColumnsShort cells (3 characters)Medium (7 to 9)Long (up to 34)
2nonono
322/2422/24no
422/2422/24no
622/2422/24no
822/24nono
1222/24nono
Detected by columns and cell length (22/24: the two missing cases are the tiny table under 20 text lines) Source: Test T06 · pdf-table-matrix.csv · Download CSV

When a table was detected it was correct in 154 of 176 cases; the 22 wrong ones are all the 12-column tables, which came out with six columns because pairs of columns were merged.

What a detected table looks like

A borderless table, detected
Measurements (borderless table)
Rainfall across the three stations rose steadily through the spring. Sensors reported every ten
minutes and the readings were averaged per day.
| Station | Rainfall (mm) | Uptime | Notes       |
| ------- | ------------- | ------ | ----------- |
| Alpha   | 412.5         | 99.2%  | Battery low |
| Bravo   | 388.0         | 97.8%  | OK stable   |
| Charlie | 451.3         | 99.9%  | New sensor  |
Text after the table.
pdf-P17.md · 452 bytes output (.md)

What an undetected table looks like

One cell per line, like our merged-cell table (our ruled table with long cells was not detected either):

A table with merged cells, not detected
Merged header

a

1

b

2

c

3

pdf-P18.md · 33 bytes output (.md)

A table that spans two pages was not detected either, and a wide table came out with columns paired:

A 12-column table
Wide table
| C0 C1     | C2 C3     | C4 C5     | C6 C7     | C8 C9     | C10 C11     |
| --------- | --------- | --------- | --------- | --------- | ----------- |
| r1c0 r1c1 | r1c2 r1c3 | r1c4 r1c5 | r1c6 r1c7 | r1c8 r1c9 | r1c10 r1c11 |
| r2c0 r2c1 | r2c2 r2c3 | r2c4 r2c5 | r2c6 r2c7 | r2c8 r2c9 | r2c10 r2c11 |
| r3c0 r3c1 | r3c2 r3c3 | r3c4 r3c5 | r3c6 r3c7 | r3c8 r3c9 | r3c10 r3c11 |
| r4c0 r4c1 | r4c2 r4c3 | r4c4 r4c5 | r4c6 r4c7 | r4c8 r4c9 | r4c10 r4c11 |
| r5c0 r5c1 | r5c2 r5c3 | r5c4 r5c5 | r5c6 r5c7 | r5c8 r5c9 | r5c10 r5c11 |
| r6c0 r6c1 | r6c2 r6c3 | r6c4 r6c5 | r6c6 r6c7 | r6c8 r6c9 | r6c10 r6c11 |
| r7c0 r7c1 | r7c2 r7c3 | r7c4 r7c5 | r7c6 r7c7 | r7c8 r7c9 | r7c10 r7c11 |
| r8c0 r8c1 | r8c2 r8c3 | r8c4 r8c5 | r8c6 r8c7 | r8c8 r8c9 | r8c10 r8c11 |
pdf-P20.md · 770 bytes output (.md)

If tables are the point of your document

Use a tool built for tables (comparison) or read the PDF with a layout-aware library yourself. We did not measure table-cell accuracy for those routes on this page.

Reading order, columns and repeated headers

Two text columns stayed apart: all left-column lines came before the right column, and the first left line was present. The page header and footer are not removed; they appear in the text once per page, with no page marker:

Header and footer on three pages
RUNNING HEADER Field Station Report

Page 1 body line 1.
Page 1 body line 2.
Page 1 body line 3.
Page 1 body line 4.
Page 1 body line 5.

Page 1 of 3 RUNNING FOOTER

RUNNING HEADER Field Station Report

Page 2 body line 1.
Page 2 body line 2.
Page 2 body line 3.
Page 2 body line 4.
Page 2 body line 5.

Page 2 of 3 RUNNING FOOTER

RUNNING HEADER Field Station Report

Page 3 body line 1.
Page 3 body line 2.
Page 3 body line 3.
Page 3 body line 4.
Page 3 body line 5.

Page 3 of 3 RUNNING FOOTER

pdf-P04.md · 500 bytes output (.md)

Hyphenated line ends are not rejoined (hyphen- and ated stay on two lines). A page rotated by 90 degrees comes out one letter per line.

Strange characters: (cid:127), missing bullets

(cid:n) means a glyph with no Unicode mapping in the font; we saw it for bullets drawn in a symbol font. You cannot fix it in MarkItDown; replace the marker afterwards.

Bullets as (cid:127)
(cid:127)  first bullet
(cid:127)  second bullet
1. numbered one
2. numbered two

pdf-P02.md · 82 bytes output (.md)

CJK, Cyrillic, Greek and common ligatures came out correctly in our test files.

Scanned PDFs give an empty file

A page that is only an image has no text layer. MarkItDown exits with code 0 and prints nothing, with no warning. In a mixed file only the pages with text produce output. To check for a text layer, try to select text in a viewer; then see OCR.

Password-protected PDFs

A file with a user password fails with an empty message and there is no password option:

Reproduced by us

PdfConverter threw PDFPasswordIncorrect with message:

The PDF is encrypted with a user password and the CLI and API have no password option.

Affected: all 0.1.x · last reproduced 2026-11-15

Remove the password with another tool first. A file with only an owner password raised a struct error in our test; that is a single file written by our generator, so we do not generalise it.

Images, links and footnotes

Images are not in PDF output (image page). We did not test link targets or footnotes.

Large PDFs: time and memory

Seconds and peak memory by page count and release (text pages, about 4,000 characters each)
PagesReleaseSecondsPeak memory (MB)
10.1.50.2111
10.1.60.2110
10.1.90.2108
100.1.51.4183
100.1.61.4108
100.1.91.3107
1000.1.515.5930
1000.1.612.4110
1000.1.912.5110
5000.1.575.54285
5000.1.663.4123
5000.1.965.4123
10000.1.5157.18467
10000.1.6128.5143
10000.1.9127.5143
Seconds and peak memory by page count and release (text pages, about 4,000 characters each) Source: Test T15 · markitdown 0.1.5, 0.1.6, 0.1.9 · one run each · cloud lab container · pdf-scale.csv · Download CSV

Release 0.1.5 needed 8.5 GB for a 1,000-page PDF; 0.1.6 and later need 143 MB

Peak memory converting the same 1,000-page text PDF (0.88 MB), one run each

  • Dependency
  • MarkItDown
Release 0.1.5 needed 8.5 GB for a 1,000-page PDF; 0.1.6 and later need 143 MB
ItemMB peak memoryNote
markitdown 0.1.58,467157.1 seconds
markitdown 0.1.6143128.5 seconds
markitdown 0.1.9143127.5 seconds

Test T15 · cloud lab container · Python 3.13 · 2026-11-15 · pdf-scale.csv

Time grows linearly: about 0.13 seconds per page on our machine. Release 0.1.5 held every page in memory, so a 1,000-page file needed 8.5 GB; 0.1.6 fixed it and later releases need 143 MB. If you see Killed on a large PDF, check your version (error index).

Ways out when the built-in converter is not enough

Your situationRoute
You need tables keptA table-aware tool: comparison
Scanned pagesOCR
You need headingsA layout-model tool or an LLM pass: comparison
You need the imagesimages
You have the original Word or PowerPoint fileConvert that instead: Word, PowerPoint

Producer differences

The same document (title, heading, paragraph, two bullets, a 3x3 table) made by three producers gave three results: the Chromium print had no table and no bullet markers; the LibreOffice PDF had the table and the bullets; the PDF drawn by a library had the table and its bullets as (cid:127). None had headings. See the last rows of the table above.

Common PDF errors

Reproduced by us

PdfConverter threw ValueError with message: not enough values to unpack (expected 4, got 2)

A PDF whose form object has a malformed bounding box (two numbers instead of four) crashes the PDF reader.

Affected: 0.1.6, 0.1.8, 0.1.9 (tested) · last reproduced 2026-11-15 · Upstream report

  • PdfConverter threw MissingDependencyException: the pdf extra is missing (missing dependency).
  • PDFSyntaxError: No /Root object!: an empty or truncated file; our zero-byte file produced it.

Version notes for PDF

  • since 0.1.4 Newer pdfminer.six.
  • since 0.1.5 Table detection from aligned words, wide tables and partially numbered lists. It also held every page in memory.
  • since 0.1.6 Fix for memory growth on long PDFs.