lucid.page parserkit error pages: reproduction log (2026-11-07)
Text size
Read time2 min

# parserkit error pages: reproduction log (2026-11-07)

Every failure quoted on parserkit.com/errors/* was run for real on 2026-11-07 in a Linux sandbox. All documents are fictional samples made for parserkit.com. Commands and output below are verbatim.

Contents

# Environment

text
Python 3.13.14 (tabula, camelot 2.0.0, pdfplumber, pypdf, ocrmypdf)
Python 3.12.16 (camelot-py[ml,ocr] 2.0.0, torch 2.15.0+cpu, transformers 4.57.6, rapidocr-onnxruntime 1.4.4)
Python 3.11.16 (camelot-py 0.11.0, numpy 1.26.4, pandas 2.1.4, opencv-python-headless 4.9.0.80)
openjdk version "21.0.12.1" 2026-08-18 LTS
tabula-py 2.10.0 (bundles tabula-1.0.5-jar-with-dependencies.jar)
camelot-py 2.0.0, pdfplumber 0.11.10, pypdf 7.0.0, pdfminer.six 20260107, pypdfium2 5.15.0
pdffonts version 25.03.0 (poppler)
ocrmypdf 17.13.0, tesseract 5.5.0
no ghostscript on PATH

# Files (sha256)

text
be41c9179b40dbc033943fe135256807b31c00c30043a9d0a020183ad62ec046  invoice-ridgeback-v-digital.pdf
f840e085186f1fb63f54795571631418d1c83f62892044c87a4d5d43381455be  invoice-ridgeback-v-ocr.pdf
09d32497c914c75b724577a368d009bcf84bdaf688d529cc488864195d47bcc1  invoice-ridgeback-v-scan.pdf
473248d0770beeaba9fef11c818d8aec797410ccb836ff13ce30765e455f9064  invoice-veldhuis-v-digital.pdf
0b567afc21eedc5e0cda84be30265379505a635194606ca745bb93ef61b4b15c  invoice-veldhuis-v-ocr.pdf
e54e5bd47bb0c31bf5b94e76a11526d74bbd718aa98db3ff3eb8280f65e9cd98  invoice-veldhuis-v-scan.pdf
cf53a5198e82b32a02801e48525d32d43a8b7a3ae67d5ce4d467fbb3c549a301  po-kittery-v-digital.pdf
58b8aa78dad9b63d8af44d14a756c011e93ab9746b4fcbc980f92d98440977bf  po-kittery-v-scan.pdf
c6ccaedf0bc8b0c944ea6bde4a7ab5fabc65f562eadd29c756c64f8e633583e9  statement-wrenfield-v-digital.pdf
f4a96fcfca84f3808bff91c80de26fbd353799e9b05023c1dc3618fc1571b9e3  statement-wrenfield-v-ocr.pdf
60c48aef36d5ed32363d1bbee7acd865d021ea29b43447864c91a25560efc90c  statement-wrenfield-v-scan.pdf
efa709b795b3101327f66e95e2cbb16d43814994344de703bb5aaf702730e05b  invoice-hollins-scan.pdf
74fe6a51b5d9c94727af1f301e0e0c3816db6e5e9615e2e73a5354ff5cae6a78  table-larkspur.pdf

# Scripts

read_tables.py

python
import sys

import tabula

tables = tabula.read_pdf(sys.argv[1], pages="all")
print(tables)

find_tables.py

python
import sys

import camelot

tables = camelot.read_pdf(sys.argv[1])
print(tables)

extract_text.py

python
import sys

import pdfplumber
from pypdf import PdfReader

with pdfplumber.open(sys.argv[1]) as pdf:
    print("pdfplumber:", repr(pdf.pages[0].extract_text()))

print("pypdf:", repr(PdfReader(sys.argv[1]).pages[0].extract_text()))

is_scan.py

python
import sys

import pdfplumber

with pdfplumber.open(sys.argv[1]) as pdf:
    for number, page in enumerate(pdf.pages, start=1):
        print(f"page {number}: {len(page.chars)} characters, {len(page.images)} images")

# Transcripts

text
$ python read_tables.py statement-wrenfield-v-scan.pdf
Failed to import jpype dependencies. Fallback to subprocess.
No module named 'jpype'
[]
[exit 0]

$ python find_tables.py invoice-ridgeback-v-scan.pdf
/workspace/venv/lib/python3.13/site-packages/camelot/parsers/base.py:132: UserWarning: page-1 is image-based, camelot only works on text-based pages.
  warnings.warn(
<TableList n=0>
[exit 0]

$ python find_tables.py invoice-ridgeback-v-digital.pdf
<TableList n=0>
[exit 0]

$ python extract_text.py invoice-veldhuis-v-scan.pdf
pdfplumber: ''
pypdf: ''
[exit 0]

$ python is_scan.py invoice-veldhuis-v-scan.pdf
page 1: 0 characters, 1 images
[exit 0]

$ python is_scan.py invoice-veldhuis-v-digital.pdf
page 1: 860 characters, 0 images
[exit 0]

$ pdffonts invoice-veldhuis-v-scan.pdf
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
[exit 0]

$ pdffonts statement-wrenfield-v-scan.pdf
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
[exit 0]

$ pdffonts invoice-ridgeback-v-scan.pdf
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
[exit 0]

$ pdffonts invoice-hollins-scan.pdf
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
[exit 0]

# tabula-py: more calls

tabula_v.py prints the version, the number of tables and their shapes. The last run has no /usr/bin on PATH, so no java.

python
import sys, importlib.metadata as md
import tabula
print("tabula-py", md.version("tabula-py"))
path, mode = sys.argv[1], sys.argv[2]
if mode == "all":
    dfs = tabula.read_pdf(path, pages="all")
elif mode == "default":
    dfs = tabula.read_pdf(path)
elif mode == "lattice":
    dfs = tabula.read_pdf(path, pages="all", lattice=True)
print(type(dfs).__name__, "of", len(dfs), "tables:", [df.shape for df in dfs])
if dfs:
    print(dfs[0].head(4).to_string()[:600])
text
### tabula scan pages=all
Failed to import jpype dependencies. Fallback to subprocess.
No module named 'jpype'
tabula-py 2.10.0
list of 0 tables: []
### tabula digital default
Failed to import jpype dependencies. Fallback to subprocess.
No module named 'jpype'
'pages' argument isn't specified.Will extract only from page 1 by default.
tabula-py 2.10.0
list of 1 tables: [(18, 5)]
   Unnamed: 0                            Unnamed: 1 Closing balance Unnamed: 2  4,832.35
0        DATE                           DESCRIPTION     WITHDRAWALS   DEPOSITS   BALANCE
1  09/01/2026  Rent payment, Eldridge Property Mgmt        1,650.00        NaN  1,091.18
2  09/02/2026    Card purchase, Old Town Noodle Bar           36.98        NaN  1,054.20
3  09/03/2026                  Mobile check deposit             NaN     249.00  1,303.20
### tabula digital pages=all
Failed to import jpype dependencies. Fallback to subprocess.
No module named 'jpype'
tabula-py 2.10.0
list of 6 tables: [(18, 5), (4, 5), (1, 5), (1, 5), (1, 5), (1, 5)]
   Unnamed: 0                            Unnamed: 1 Closing balance Unnamed: 2  4,832.35
0        DATE                           DESCRIPTION     WITHDRAWALS   DEPOSITS   BALANCE
1  09/01/2026  Rent payment, Eldridge Property Mgmt        1,650.00        NaN  1,091.18
2  09/02/2026    Card purchase, Old Town Noodle Bar           36.98        NaN  1,054.20
3  09/03/2026                  Mobile check deposit             NaN     249.00  1,303.20
### tabula digital lattice
Failed to import jpype dependencies. Fallback to subprocess.
No module named 'jpype'
tabula-py 2.10.0
list of 14 tables: [(8, 5), (1, 5), (1, 5), (1, 5), (1, 5), (1, 5), (1, 5), (1, 5), (1, 5), (4, 5), (1, 5), (1, 5), (1, 5), (1, 5)]
  Wrenfield Savings Bankwrenfieldsavings.example\r1-800-555-0142\r300 Harbor Way, Bellingham, WA 98225\rChecking account statement\rAccount number4417 2093 6650\r09/01/2026 to 09/30/2026\rRouting number541030924\rEveryday checkingJordan ElleryAccount type\r2218 Eldridge Ave, Bellingham, WA 98225CurrencyUSD\rOpening balance2,741.18\rTotal deposits5,078.03\rTotal withdrawals2,986.86\rClosing balance4,832.35\rDATEDESCRIPTIONWITHDRAWALSDEPOSITSBALANCE\r09/01/2026Rent payment, Eldridge Property Mgmt1,650.001,091.18\r09/02/2026Card purchase, Old Town Noodle Bar36.981,054.20\r09/03/2026Mobile check d
### tabula no java
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/workspace/venv/lib/python3.13/site-packages/tabula/backend.py", line 133, in call_tabula_java
    raise JavaNotFoundError(JAVA_NOT_FOUND_ERROR)
tabula.errors.JavaNotFoundError: `java` command is not found from this Python process.Please ensure Java is installed and PATH is set for `java`

# camelot-py 2.0.0: every flavor

python
import sys, warnings, importlib.metadata as md
warnings.simplefilter("always")
import camelot
print("camelot-py", md.version("camelot-py"))
path = sys.argv[1]
for flavor in sys.argv[2:]:
    with warnings.catch_warnings(record=True) as caught:
        warnings.simplefilter("always")
        tables = camelot.read_pdf(path, flavor=flavor, pages="all") if flavor != "lattice-default" else camelot.read_pdf(path)
    shown = [f"{w.category.__name__}: {w.message}" for w in caught if "camelot" in str(w.filename) or "image-based" in str(w.message) or "auto-detected" in str(w.message)]
    print(f"flavor={flavor}", tables, [t.shape for t in tables], shown)
    if len(tables):
        print(tables[0].df.head(4).to_string()[:500])
text
### camelot ridgeback-v scan
camelot-py 2.0.0
flavor=lattice-default <TableList n=0> [] ['UserWarning: page-1 is image-based, camelot only works on text-based pages.']
flavor=stream <TableList n=0> [] ['UserWarning: page-1 is image-based, camelot only works on text-based pages.']
flavor=network <TableList n=0> [] ['UserWarning: page-1 is image-based, camelot only works on text-based pages.']
flavor=hybrid <TableList n=0> [] ['UserWarning: page-1 is image-based, camelot only works on text-based pages.']
flavor=auto <TableList n=0> [] ["UserWarning: camelot.read_pdf: auto-detected per-page flavors {1: 'lattice'}", 'UserWarning: page-1 is image-based, camelot only works on text-based pages.']
### camelot ridgeback-v digital
camelot-py 2.0.0
flavor=lattice-default <TableList n=0> [] []
flavor=stream <TableList n=4> [(9, 3), (7, 4), (7, 2), (4, 2)] []
                                 0               1              2
0              Ridgeback Print Co.                               
1                                                   I N V O I C E
2  1810 E 6th St, Austin, TX 78702                               
3                                   Invoice number        RB-2236

Borderless 2-page price list table-larkspur.pdf (same environment):

text
lattice: <TableList n=0>
stream: <TableList n=3> [(31, 5), (31, 5), (26, 6)]
                                                                           0                           1    2           3            4
0                                          Wholesale price list, spring 2027                                                          
1  Prices in EUR per plant, excluding VAT. Minimum order per line in plants.                                                          
2                                                                       CODE                       PLANT  POT      HEIGHT  PRICE (EUR)
3                                                                    LH-1001   Acer palmatum 'Bloodgood'  C10   80-100 cm        24.50
4                                                                    LH-1002  Acer palmatum 'Sango-kaku'  C10   80-100 cm        26.80
5                                                                    LH-1003       Amelanchier lamarckii  C15  125-150 cm        31.20

# camelot-py 2.0.0 flavor=“ml” with the ocr extra (Python 3.12)

python
import time, importlib.metadata as md
import camelot
print("camelot-py", md.version("camelot-py"), "torch", md.version("torch"), "rapidocr-onnxruntime", md.version("rapidocr-onnxruntime"))
started = time.time()
tables = camelot.read_pdf("invoice-ridgeback-v-scan.pdf", flavor="ml")
print("flavor=ml", tables, [t.shape for t in tables], f"{time.time() - started:.0f}s")
for i, t in enumerate(tables):
    print(f"--- table {i}"); print(t.df.to_string()[:1500])
text
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for conv1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for bn1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for bn1.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer1.0.conv1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer1.0.bn1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer1.0.bn1.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer1.0.conv2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer1.0.bn2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer1.0.bn2.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer1.1.conv1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer1.1.bn1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer1.1.bn1.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer1.1.conv2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer1.1.bn2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer1.1.bn2.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer2.0.conv1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer2.0.bn1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer2.0.bn1.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer2.0.conv2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer2.0.bn2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer2.0.bn2.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer2.0.downsample.0.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer2.0.downsample.1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer2.0.downsample.1.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer2.1.conv1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer2.1.bn1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer2.1.bn1.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer2.1.conv2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer2.1.bn2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer2.1.bn2.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer3.0.conv1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer3.0.bn1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer3.0.bn1.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer3.0.conv2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer3.0.bn2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer3.0.bn2.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer3.0.downsample.0.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer3.0.downsample.1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer3.0.downsample.1.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer3.1.conv1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer3.1.bn1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer3.1.bn1.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer3.1.conv2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer3.1.bn2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer3.1.bn2.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer4.0.conv1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer4.0.bn1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer4.0.bn1.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer4.0.conv2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer4.0.bn2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer4.0.bn2.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer4.0.downsample.0.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer4.0.downsample.1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer4.0.downsample.1.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer4.1.conv1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer4.1.bn1.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer4.1.bn1.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/module.py:2597: UserWarning: for layer4.1.conv2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer4.1.bn2.weight: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
/workspace/venv312/lib/python3.12/site-packages/torch/nn/modules/batchnorm.py:141: UserWarning: for layer4.1.bn2.bias: copying from a non-meta parameter in the checkpoint to a meta parameter in the current model, which is a no-op. (Did you mean to pass `assign=True` to assign items in the state dictionary to their corresponding key in the module instead of copying them in place?)
camelot-py 2.0.0 torch 2.15.0+cpu rapidocr-onnxruntime 1.4.4
flavor=ml <TableList n=1> [(6, 4)] 120s
--- table 0
                               0     1           2       3
0                    DESCRIPTION   QTY  UNIT PRICE  AMOUNT
1  Coffeebag labels,matte,3by4in  6000        0.09  540.00
2  Kraft gift boxes,2-colorprint   250        2.35  587.50
3   Menuboards,foamcore,18by24in     4       38.50  154.00
4     Loyalty cards,2-sided,16pt  3000        0.11  330.00
5      Design and prepress,hours   3.5       85.00  297.50

On Python 3.13, pip install "camelot-py[ml,ocr]==2.0.0" failed:

text
ERROR: Ignored the following versions that require a different python version: 1.2.10 Requires-Python >=3.6,<3.12; 1.2.11 Requires-Python >=3.6,<3.12; 1.2.12 Requires-Python >=3.6,<3.12; 1.2.13 Requires-Python >=3.6,<3.12; 1.2.4 Requires-Python >=3.6,<=3.10; 1.2.5 Requires-Python >=3.6,<=3.10; 1.2.6 Requires-Python >=3.6,<=3.10; 1.2.7 Requires-Python >=3.6,<=3.10; 1.2.8 Requires-Python >=3.6,<=3.10; 1.2.9 Requires-Python >=3.6,<3.12; 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11; 1.26.0 Requires-Python >=3.9,<3.13; 1.26.1 Requires-Python >=3.9,<3.13; 1.3.0 Requires-Python >=3.6,<3.12; 1.3.1 Requires-Python >=3.6,<3.12; 1.3.10 Requires-Python >=3.6,<3.12; 1.3.11 Requires-Python >=3.6,<3.12; 1.3.12 Requires-Python >=3.6,<3.12; 1.3.13 Requires-Python >=3.6,<3.12; 1.3.14 Requires-Python >=3.6,<3.12; 1.3.15 Requires-Python >=3.6,<3.12; 1.3.16 Requires-Python >=3.6,<3.12; 1.3.17 Requires-Python >=3.6,<3.12; 1.3.18 Requires-Python >=3.6,<3.13; 1.3.19 Requires-Python >=3.6,<3.13; 1.3.2 Requires-Python >=3.6,<3.12; 1.3.20 Requires-Python >=3.6,<3.13; 1.3.21 Requires-Python >=3.6,<3.13; 1.3.22 Requires-Python >=3.6,<3.13; 1.3.23 Requires-Python >=3.6,<3.13; 1.3.24 Requires-Python >=3.6,<3.13; 1.3.25 Requires-Python >=3.6,<3.13; 1.3.3 Requires-Python >=3.6,<3.12; 1.3.4 Requires-Python >=3.6,<3.12; 1.3.5 Requires-Python >=3.6,<3.12; 1.3.6 Requires-Python >=3.6,<3.12; 1.3.7 Requires-Python >=3.6,<3.12; 1.3.8 Requires-Python >=3.6,<3.12; 1.3.9 Requires-Python >=3.6,<3.12; 1.4.0 Requires-Python >=3.6,<3.13; 1.4.1 Requires-Python >=3.6,<3.13; 1.4.2 Requires-Python >=3.6,<3.13; 1.4.3 Requires-Python >=3.6,<3.13; 1.4.4 Requires-Python >=3.6,<3.13
ERROR: Could not find a version that satisfies the requirement rapidocr-onnxruntime>=1.3; extra == "ocr" (from camelot-py[ml,ocr]) (from versions: 0.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.1.8, 1.1.9, 1.1.10, 1.1.11, 1.1.12, 1.1.13, 1.1.14, 1.1.15, 1.1.16, 1.1.17, 1.1.18, 1.1.19, 1.1.20, 1.1.21, 1.1.22, 1.1.23, 1.1.24, 1.1.25, 1.1.26, 1.1.27, 1.1.28, 1.1.29, 1.1.30, 1.2.0, 1.2.1, 1.2.2, 1.2.3)
ERROR: No matching distribution found for rapidocr-onnxruntime>=1.3; extra == "ocr"

# camelot-py 0.11.0 without Ghostscript (Python 3.11)

text
        ^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/venv-cam011/lib/python3.11/site-packages/camelot/parsers/lattice.py", line 421, in extract_tables
    self.backend.convert(self.filename, self.imagename)
  File "/workspace/venv-cam011/lib/python3.11/site-packages/camelot/backends/ghostscript_backend.py", line 31, in convert
    raise OSError(
OSError: Ghostscript is not installed. You can install it using the instructions here: https://camelot-py.readthedocs.io/en/master/user/install-deps.html

# OCR first: ocrmypdf 17.13.0, then the same tools

text
ocrmypdf --output-type pdf <name>-scan.pdf <name>-ocr.pdf
text
### pdfplumber/pypdf after OCR (veldhuis)
pdfplumber 0.11.10 pypdf 7.0.0
pdfplumber extract_text -> 'Veldhuis Lichtwerk B.V.\nINVOICE\nOudegracht 214, 3511 NR Utrecht, Netherlands\nVAT NL859312406B01 Invoice number 2026-0503\nhallo@veldhuislichtwerk.example Invoice date 3 November 2026\nDue date 17 November 2026\nYour order KH-PO-3352\nBILL TO\nKanaalhuis Hotels B.V.\nPrinsengracht 532, 1017 KJ Amsterdam, Netherlands\nVAT NLO04192837B01\nDESCRIPTION QTY UNIT PRICE AMOUNT\nPendant lamp Lune 40, brass 4 189,00 756,00\nWall light Kade, matte black 10 74,50 745,00\nLED filament bulb E27, warm white 40 6,80 272,00\nFabric cable 3 m, ochre 15 11525 168,75\nInstallation, hours 6 65,00 390,00\nSubtotal 2.331,75\nVAT 21% on 2.331,75 489,67\nTotal EUR 2.821,42\nDeposit paid 20 October 2026 750,00\nAmount due 2.071,42\nIBAN NL29 STRD 0417 2385 62\nBIC STRDNL2U\nPayment reference 2026-0503\nPayment terms 14 days\nThank you for your order. Delivery to Amsterdam is included.\nVeldhuis Lichtwerk B.V. Oudegracht 214, Utrecht veldhuislichtwerk.example' | chars: 923 | images: 1
pypdf extract_text -> 'Veldhuis Lichtwerk B.V. INVOICE \nOudegracht 214, 3511 NR Utrecht, Netherlands \nVAT NL859312406B01 Invoice number 2026-0503 \nhallo@veldhuislichtwerk.example Invoice date 3 November 2026 \nDue date 17 November 2026 \nYour order KH-PO-3352 \nBILL TO \nKanaalhuis Hotels B.V. \nPrinsengracht 532, 1017 KJ Amsterdam, Netherlands \nVAT NLO04192837B01 \nDESCRIPTION QTY UNIT PRICE AMOUNT \nPendant lamp Lune 40, brass 4 189,00 756,00 \nWall light Kade, matte black 10 74,50 745,00 \nLED filament bulb E27, warm white 40 6,80 272,00 \nFabric cable 3 m, ochre 15 11525 168,75 \nInstallation, hours 6 65,00 390,00 \nSubtotal 2.331,75 \nVAT 21% on 2.331,75 489,67 \nTotal EUR 2.821,42 \nDeposit paid 20 October 2026 750,00 \nAmount due 2.071,42 \nIBAN NL29 STRD 0417 2385 62 \nBIC STRDNL2U \nPayment reference 2026-0503 \nPayment terms 14 days \nThank you for your order. Delivery to Amsterdam is included. \nVeldhuis Lichtwerk B.V. Oudegracht 214, Utrecht veldhuislichtwerk.example \n'
### tabula after OCR (wrenfield)
list of 2 tables: [(15, 5), (7, 5)]
   Unnamed: 0                            Unnamed: 1 Closing balance Unnamed: 2  4,832.35
0        DATE                           DESCRIPTION     WITHDRAWALS   DEPOSITS   BALANCE
1  09/01/2026  Rent payment, Eldridge Property Mgmt        1,650.00        NaN  1,091.18
2  09/02/2026    Card purchase, Old Town Noodle Bar           36.98        NaN  1,054.20
3  09/03/2026                  Mobile check deposit             NaN     249.00  1,303.20
stream guess=False: [(32, 3), (13, 3)]
                 Wrenfield Savings Bank      Unnamed: 0 wrenfieldsavings.example
0                                   NaN             NaN           1-800-555-0142
1  300 Harbor Way, Bellingham, WA 98225             NaN                      NaN
2            Checking account statement             NaN                      NaN
3                                   NaN  Account number           4417 2093 6650
4              09/01/2026 to 09/30/2026  Routing number                541030924
5                         Jordan Ellery             NaN                      NaN
### camelot after OCR (ridgeback)
camelot-py 2.0.0
flavor=lattice-default <TableList n=0> [] []
flavor=stream <TableList n=3> [(7, 3), (10, 4), (5, 2)] []
                                       0                1        2
0                  Ridgeback  Print  Co.                          
1                                                          INVOICE
2  1810  E  6th  St,  Austin,  TX  78702                          
3                        EIN  47-3851902  Invoice  number  RB-2236

Same route on invoice-hollins-scan.pdf (pdfplumber after ocrmypdf):

text
pdfplumber chars: 833
Hollins Brook Plumbing & Heating
INVOICE
62 Barre St, Montpelier, VT 05602
(802) 555-0163 Invoice number HB-0518
office@hollinsbrook.example
Invoice date October 21, 2026
Due date November 20, 2026
Job number J-2291
BILL TO
Dana Whitcomb
118 Maple Ave, Barre, VT 05641
DESCRIPTION
QTY UNIT PRICE AMOUNT
Labor, licensed plumber, hours aaa 95.00 332.50
Pipe insulation, 6 ft 8 4,25 34.00
PEX pipe 3/4 in, 10 ft 3 18.90 56.70
Ball valve 3/4 in, brass 2 24.60 49.20
Expansion tank fittings 4 7.35 29.40
Service call, visits 2 45.00 90.00
Subtotal 591.80
Sales tax 6% on 169.30 10.16
Total (USD) 601.96
Paid at booking 150.00
Balance due (USD) 451.96
Pay by check to Hollins Brook Plumbing & Heating
Terms
pypdf chars: 859
tabula: 0 []
camelot stream: <TableList n=1> [(8, 3)]
                                       0                1                   2
0       Hollins Brook Plumbing & Heating                                     
1                                                                     INVOICE
2  62  Barre  St,  Montpelier,  VT 05602                                     
3                        (802)  555-0163  Invoice  number             HB-0518
4            office@hollinsbrook.example                                     
5                                            Invoice date   October 21,  2026
6                                               Due  date  November 20,  2026
7                                             Job  number              J-2291

# Every call on every copy (scan, digital PDF, scan after ocrmypdf)

matrix_tabula.py

python
import sys, warnings
import tabula
calls = {
    'read_pdf(f)': {},
    'read_pdf(f, pages="all")': {"pages": "all"},
    'read_pdf(f, pages="all", lattice=True)': {"pages": "all", "lattice": True},
    'read_pdf(f, pages="all", stream=True, guess=False)': {"pages": "all", "stream": True, "guess": False},
}
for path in sys.argv[1:]:
    for label, kwargs in calls.items():
        tables = tabula.read_pdf(path, silent=True, **kwargs)
        print(f"{path} | {label} | {len(tables)} tables {[t.shape for t in tables]}")

matrix_camelot.py

python
import sys, warnings
import camelot
for path in sys.argv[1:]:
    for flavor in ("lattice", "stream", "network", "hybrid", "auto"):
        with warnings.catch_warnings(record=True) as caught:
            warnings.simplefilter("always")
            tables = camelot.read_pdf(path, flavor=flavor, pages="all")
        notes = sorted({str(w.message) for w in caught})
        print(f"{path} | flavor={flavor} | n={tables.n} {[t.shape for t in tables]} | {notes}")

text_digital.py

python
import sys
import pdfplumber
from pypdf import PdfReader
for path in sys.argv[1:]:
    with pdfplumber.open(path) as pdf:
        text = pdf.pages[0].extract_text()
    print(f"{path} | pdfplumber extract_text: {len(text)} characters, first line {text.splitlines()[0]!r}")
    text = PdfReader(path).pages[0].extract_text()
    print(f"{path} | pypdf extract_text: {len(text)} characters, first line {text.splitlines()[0]!r}")
text
### tabula-py 2.10.0 matrix (silent=True hides the jpype notice)
statement-wrenfield-v-scan.pdf | read_pdf(f) | 0 tables []
statement-wrenfield-v-scan.pdf | read_pdf(f, pages="all") | 0 tables []
statement-wrenfield-v-scan.pdf | read_pdf(f, pages="all", lattice=True) | 0 tables []
statement-wrenfield-v-scan.pdf | read_pdf(f, pages="all", stream=True, guess=False) | 0 tables []
statement-wrenfield-v-digital.pdf | read_pdf(f) | 1 tables [(18, 5)]
statement-wrenfield-v-digital.pdf | read_pdf(f, pages="all") | 6 tables [(18, 5), (4, 5), (1, 5), (1, 5), (1, 5), (1, 5)]
statement-wrenfield-v-digital.pdf | read_pdf(f, pages="all", lattice=True) | 14 tables [(8, 5), (1, 5), (1, 5), (1, 5), (1, 5), (1, 5), (1, 5), (1, 5), (1, 5), (4, 5), (1, 5), (1, 5), (1, 5), (1, 5)]
statement-wrenfield-v-digital.pdf | read_pdf(f, pages="all", stream=True, guess=False) | 2 tables [(28, 2), (12, 3)]
statement-wrenfield-v-ocr.pdf | read_pdf(f) | 1 tables [(15, 5)]
statement-wrenfield-v-ocr.pdf | read_pdf(f, pages="all") | 2 tables [(15, 5), (7, 5)]
statement-wrenfield-v-ocr.pdf | read_pdf(f, pages="all", lattice=True) | 0 tables []
statement-wrenfield-v-ocr.pdf | read_pdf(f, pages="all", stream=True, guess=False) | 2 tables [(32, 3), (13, 3)]
### camelot-py 2.0.0 matrix (pages=all)
invoice-ridgeback-v-scan.pdf | flavor=lattice | n=0 [] | ['page-1 is image-based, camelot only works on text-based pages.']
invoice-ridgeback-v-scan.pdf | flavor=stream | n=0 [] | ['page-1 is image-based, camelot only works on text-based pages.']
invoice-ridgeback-v-scan.pdf | flavor=network | n=0 [] | ['page-1 is image-based, camelot only works on text-based pages.']
invoice-ridgeback-v-scan.pdf | flavor=hybrid | n=0 [] | ['page-1 is image-based, camelot only works on text-based pages.']
invoice-ridgeback-v-scan.pdf | flavor=auto | n=0 [] | ["camelot.read_pdf: auto-detected per-page flavors {1: 'lattice'}", 'page-1 is image-based, camelot only works on text-based pages.']
invoice-ridgeback-v-digital.pdf | flavor=lattice | n=0 [] | []
invoice-ridgeback-v-digital.pdf | flavor=stream | n=4 [(9, 3), (7, 4), (7, 2), (4, 2)] | []
invoice-ridgeback-v-digital.pdf | flavor=network | n=2 [(20, 5), (10, 2)] | []
invoice-ridgeback-v-digital.pdf | flavor=hybrid | n=4 [(5, 2), (3, 2), (20, 5), (10, 2)] | []
invoice-ridgeback-v-digital.pdf | flavor=auto | n=2 [(20, 5), (10, 2)] | ["camelot.read_pdf: auto-detected per-page flavors {1: 'network'}"]
invoice-ridgeback-v-ocr.pdf | flavor=lattice | n=0 [] | []
invoice-ridgeback-v-ocr.pdf | flavor=stream | n=3 [(7, 3), (10, 4), (5, 2)] | []
invoice-ridgeback-v-ocr.pdf | flavor=network | n=0 [] | []
invoice-ridgeback-v-ocr.pdf | flavor=hybrid | n=0 [] | []
invoice-ridgeback-v-ocr.pdf | flavor=auto | n=0 [] | ["camelot.read_pdf: auto-detected per-page flavors {1: 'lattice'}"]
### digital copies: extract_text
invoice-veldhuis-v-digital.pdf | pdfplumber extract_text: 922 characters, first line 'Veldhuis Lichtwerk B.V. INVOICE'
invoice-veldhuis-v-digital.pdf | pypdf extract_text: 922 characters, first line 'Veldhuis Lichtwerk B.V.'
invoice-veldhuis-v-ocr.pdf | pdfplumber extract_text: 922 characters, first line 'Veldhuis Lichtwerk B.V.'
invoice-veldhuis-v-ocr.pdf | pypdf extract_text: 950 characters, first line 'Veldhuis Lichtwerk B.V. INVOICE '
### pdffonts and pdfimages
$ pdffonts invoice-veldhuis-v-digital.pdf
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
AAAAAA+LiberationSans-Bold           CID TrueType      Identity-H       yes yes yes      4  0
BAAAAA+LiberationSans                CID TrueType      Identity-H       yes yes yes      5  0
$ pdfimages -list invoice-veldhuis-v-scan.pdf
page   num  type   width height color comp bpc  enc interp  object ID x-ppi y-ppi size ratio
--------------------------------------------------------------------------------------------
   1     0 image    1656  2342  rgb     3   8  jpeg   no         5  0   200   200  175K 1.5%
$ pdffonts invoice-veldhuis-v-ocr.pdf
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
MPDFAA+NotoSans                      CID TrueType      Identity-H       yes yes yes      6  0

# n8n 2.46.6: Extract from File (Extract From PDF)

Self-hosted n8n 2.46.6 (npm), Node 24.22.2, SQLite. Manual Trigger, then Read/Write Files from Disk 1.1 into data, then Extract from File 1.1, operation Extract From PDF. Run with n8n execute --id.

Scanned invoice-hollins-scan.pdf, default options:

json
{
  "numpages": 1,
  "numrender": 1,
  "info": {
    "PDFFormatVersion": "1.4",
    "Language": null,
    "EncryptFilterName": null,
    "IsLinearized": false,
    "IsAcroFormPresent": false,
    "IsXFAPresent": false,
    "IsCollectionPresent": false,
    "IsSignaturesPresent": false,
    "Creator": "Chromium",
    "Producer": "Skia/PDF m147",
    "CreationDate": "D:20261021090000+00'00'",
    "ModDate": "D:20261021090000+00'00'"
  },
  "text": "",
  "version": "6.3.289"
}

Text PDF invoice-ridgeback.pdf, default options (text cut here):

json
{
  "numpages": 1,
  "numrender": 1,
  "info": {
    "PDFFormatVersion": "1.4",
    "Language": null,
    "EncryptFilterName": null,
    "IsLinearized": false,
    "IsAcroFormPresent": false,
    "IsXFAPresent": false,
    "IsCollectionPresent": false,
    "IsSignaturesPresent": false,
    "Title": "INVOICE RB-2207",
    "Creator": "Chromium",
    "Producer": "Skia/PDF m147",
    "CreationDate": "D:20261030090000+00'00'",
    "ModDate": "D:20261030090000+00'00'"
  },
  "text": "Ridgeback Print Co.\n1810 E 6th St, Austin, TX 78702\nEIN 47-3851902\nbilling@ridgebackprint.example\nI N V O I C E\nInvoice number RB-2207\nInvoice date October 30, 2026\nDue date November 29, 2026\nPO number LH-0912\nBILL TO\nLarkhaven Coffee Roasters LLC\n4420 Burnet Rd, Austin, TX 78756\nSHIP TO\nLarkhaven Coffee Roasters LLC\n2301 S Lamar Blvd, Austin, TX 78704\nDESCRIPTION QTY UNIT PRICE AMOUNT\nCoffee bag ... (1036 characters in total)",
  "version": "6.3.289"
}

Max Pages option added at its default 0, text PDF invoice-ridgeback.pdf:

json
[
  {
    "numpages": 1,
    "numrender": 1,
    "info": {
      "PDFFormatVersion": "1.4",
      "Language": null,
      "EncryptFilterName": null,
      "IsLinearized": false,
      "IsAcroFormPresent": false,
      "IsXFAPresent": false,
      "IsCollectionPresent": false,
      "IsSignaturesPresent": false,
      "Title": "INVOICE RB-2207",
      "Creator": "Chromium",
      "Producer": "Skia/PDF m147",
      "CreationDate": "D:20261030090000+00'00'",
      "ModDate": "D:20261030090000+00'00'"
    },
    "text": "",
    "version": "6.3.289"
  }
]

Input Binary Field set to attachment_0 while the file is in data:

json
{
  "message": "The item has no binary field 'attachment_0' [item 0]",
  "description": "Check that the parameter where you specified the input binary field name is correct, and that it matches a field in the binary input",
  "name": "NodeOperationError",
  "level": "warning",
  "context": {
    "itemIndex": 0
  }
}

# parserkit API runs (POST /v1/parse?wait=60, multipart file + preset)

statement-wrenfield-v-scan.pdf, preset bank_statement:

json
{
  "id": "job_wrnysps6myd8bfewkb9e",
  "status": "succeeded",
  "pages": 2,
  "digital_pages": 0,
  "ocr_pages": 2,
  "cost_usd": 0.04,
  "verification_status": "verified",
  "duplicate": null,
  "created_at": "2026-11-07T09:20:26.925Z",
  "finished_at": "2026-11-07T09:20:52.710Z",
  "coverage": {
    "values": 116,
    "checked": 116
  },
  "checks": [
    "balance pass",
    "sum pass",
    "sum pass",
    "balance pass",
    "running_balance pass",
    "aba_routing pass"
  ]
}

invoice-ridgeback-v-scan.pdf, preset invoice:

json
{
  "id": "job_6f2hce27c6f736c1jvqu",
  "status": "succeeded",
  "pages": 1,
  "digital_pages": 0,
  "ocr_pages": 1,
  "cost_usd": 0.02,
  "verification_status": "partial",
  "duplicate": null,
  "created_at": "2026-11-07T09:20:26.808Z",
  "finished_at": "2026-11-07T09:20:52.823Z",
  "coverage": {
    "values": 46,
    "checked": 45
  },
  "checks": [
    "line_total pass",
    "line_total pass",
    "line_total pass",
    "line_total pass",
    "line_total pass",
    "line_total pass",
    "sum pass",
    "sum pass",
    "sum pass",
    "balance pass",
    "us_ein pass",
    "aba_routing pass"
  ]
}

invoice-veldhuis-v-scan.pdf, preset invoice:

json
{
  "id": "job_w5pmsfb7zsntwoj6qe3c",
  "status": "succeeded",
  "pages": 1,
  "digital_pages": 0,
  "ocr_pages": 1,
  "cost_usd": 0.02,
  "verification_status": "verified",
  "duplicate": null,
  "created_at": "2026-11-07T09:27:29.506Z",
  "finished_at": "2026-11-07T09:27:49.882Z",
  "coverage": {
    "values": 46,
    "checked": 46
  },
  "checks": [
    "line_total pass",
    "line_total pass",
    "line_total pass",
    "line_total pass",
    "line_total pass",
    "line_total pass",
    "sum pass",
    "sum pass",
    "sum pass",
    "balance pass",
    "eu_vat pass",
    "eu_vat pass",
    "iban pass"
  ]
}

po-kittery-v-scan.pdf, preset purchase_order:

json
{
  "id": "job_7r3cvjsl0kcn7fmasiik",
  "status": "succeeded",
  "pages": 1,
  "digital_pages": 0,
  "ocr_pages": 1,
  "cost_usd": 0.02,
  "verification_status": "partial",
  "duplicate": null,
  "created_at": "2026-11-07T09:21:09.288Z",
  "finished_at": "2026-11-07T09:21:29.532Z",
  "coverage": {
    "values": 56,
    "checked": 49
  },
  "checks": [
    "line_total pass",
    "line_total pass",
    "line_total pass",
    "line_total pass",
    "line_total pass",
    "line_total pass",
    "sum pass",
    "sum pass",
    "sum pass"
  ]
}

# parserkit inbox on a pay-as-you-go account

text
$ curl -s https://api.parserkit.com/v1/inboxes \
  -H "Authorization: Bearer $PARSERKIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"preset": "invoice", "webhook_url": "https://hooks.zapier.com/hooks/catch/123456/abcdef/"}' \
  -w '\nHTTP %{http_code}\n'
{"error":{"code":"PLAN_REQUIRED","message":"upgrade to the Pro plan to use inboxes","request_id":"a56b5599bf544e32"}}
HTTP 403
2026-11-07T09:33:05Z
End