Blog
How 100sands compares with other tools, and how to get text and data out of PDFs and documents. Every code sample was run before it was published, and what you see under it is what it printed.
100sands compared
100sands next to other document extraction products: what each one reads, how it is set up and what it costs. Facts about the other products come from their own public pages, listed at the end of each post with the date they were read.
100sands vs Docparser: which one fits your documents
100sands and Docparser compared: the files each reads, how extraction is set up, whether AI reads every document, the free plans, and what documents cost.
100sands vs Parseur: which one fits your documents
100sands and Parseur compared: emails, scans and PDFs, AI or templates, whether the same file gives the same result, and pages against files in the price.
100sands vs Parsio: which one fits your documents
100sands and Parsio compared: emails, scans and PDFs, Parsio's four parsers against samples checked by AI, and credits per page against a price per file.
100sands vs Airparser: AI on every page, or only at setup
100sands and Airparser compared: emails, scans and PDFs, a language model on each document or only at setup, human review, and credits per page against files.
100sands vs Sensible: two ways to mix rules and AI
100sands and Sensible compared: layout rules and language models, who writes the configuration, scans and PDFs, free plans and the price of a document.
100sands vs Reducto: a document API for AI teams, or fixed fields
100sands and Reducto compared: 30+ file types or text PDFs, models on every page or only at setup, citations, and per-page list rates against a price per file.
100sands vs LlamaParse: documents for AI, or fields for your systems
100sands and LlamaParse compared: 130+ formats or text PDFs, parse tiers and LlamaExtract schemas, AI on every page or only at setup, and credits per page.
100sands vs Unstructured: chunks for AI, or the values you name
100sands and Unstructured compared: document elements and chunks for AI or named fields, 65+ file types or text PDFs, open source, and the price of a page.
100sands vs Nanonets: AI agents, or fixed extraction
100sands and Nanonets compared: scans and 200+ languages or text PDFs, AI agents with human review or fixed rules, and a price per workflow step or per file.
100sands vs Amazon Textract: text PDFs, scans and prices
100sands and Amazon Textract compared: scans or text PDFs, ready-made APIs or fields set up from your samples, languages, and a price per page or per file.
100sands vs Google Document AI: setup, languages and prices
100sands and Google Document AI compared: processors for scans and PDFs or fields from your samples, generative extraction, languages, and prices per page.
100sands vs Azure Document Intelligence: setup, files and prices
100sands and Azure Document Intelligence compared: prebuilt and custom models or fields from your samples, scans and Office files, free tiers and page prices.
Getting text out of files
Working code for reading PDFs and Office files, and what each tool gets right and wrong.
How to extract text from a PDF in Python
Working code for pypdf, PyMuPDF and pdfplumber on the same two files, with real output: what each gets right, how fast it is, and what none of them can read.
pypdf vs pdfplumber vs PyMuPDF vs pdfminer.six, on the same files
Four Python PDF libraries run on the same files: columns, ligatures, broken fonts, Hebrew, forms, scans and speed. One table of what each returned.
How to extract text from a PDF in Node.js
Working Node.js code for pdf-parse and pdfjs-dist, with real output: the text, pieces with positions, what changed in pdf-parse 2, and what neither reads.
How to extract text from a PDF in Java with PDFBox
Java code for Apache PDFBox 3: all the text, one page, one area of a page, and what setSortByPosition does to columns. With real output on six sample files.
How to extract text from a PDF in C#
C# code for PdfPig, the free Apache-licensed PDF library for .NET: text with spaces and line breaks, words with positions, and why page.Text is not enough.
PDF to text from the command line: pdftotext and curl
Convert PDFs to text in a terminal with pdftotext: its three modes, page ranges, passwords and a whole folder at once. Plus OCR, and one curl call to an API.
How to get text with its coordinates from a PDF
Read every word of a PDF with its position: how PDF coordinates work, where the origin is, and Python code for pdfplumber and PyMuPDF with real output.
Keeping columns and lines in order when extracting PDF text
Why text from a two-column PDF comes out mixed, which Python tools read column by column, and code that finds the gap between columns and cuts the page there.
PDF to JSON in Python: three meanings, and how to do each
Turn a PDF into JSON in Python: the text of each page, the full layout with positions, or named fields. Working code and its real output for all three.
Extracting text from Word, Excel, CSV and HTML files
Python code for reading text from DOCX, XLSX, CSV and HTML files, with its real output and the catch in each: tables, formulas, encodings and hidden text.
Why PDF text goes wrong
Gibberish, reversed lines, locked files and pages with no text at all: what causes each, and the fix.
Why you can't copy text from some PDFs, or get gibberish
Four reasons text will not copy from a PDF, or pastes as symbols: scans, fonts with no Unicode map, permissions and joined letters. With the fix for each.
Scanned or searchable? How to tell if a PDF has real text
The difference between a scanned and a searchable PDF, how to check a file by hand, in Python and from the command line, and how to add a text layer with OCR.
Why Hebrew text from a PDF comes out backwards, and how to fix it
Hebrew text taken from a PDF is often reversed, with numbers and English in the wrong place. Why it happens, what four Python libraries return, and the fix.
Extracting Arabic and other right-to-left text from PDFs
Arabic PDF text comes out reversed, and the joined letters lam-alef come out swapped. What five tools return for the same file, and why OCR is the safer route.
Password-protected PDFs: why extraction fails and what to do
Why libraries fail on a locked PDF, how to check for encryption in Python, how to read or unlock a file when you have the password, and what you cannot do.
OCR
Reading scans and photos with OCR tools: how to do it, how to make it better, and how to measure it. 100sands itself reads PDF and HTML files that contain text, not scans.
How to OCR a scanned PDF in Python
Read scanned PDFs in Python with Tesseract: turn pages into images with PyMuPDF, run pytesseract, OCR only the pages that need it, and get word positions.
How to improve OCR accuracy
One page read by Tesseract in six conditions, with the error rate for each: what resolution, rotation and noise do, and the fixes that work, with measurements.
Hebrew OCR: reading scanned Hebrew documents
Hebrew OCR with Tesseract, measured: why heb+eng beats heb alone, what happens with no language set, why short pages are harder, and how to handle mixed text.
How to measure OCR accuracy: character and word error rate
What character error rate and word error rate mean, a Python script that measures both, and how to judge OCR by the fields you extract, not the page.
OCR, LLMs or templates: which should read your documents?
OCR, language models and templates do different jobs. What each is for, how each one fails, what it costs per page, and which to use for which documents.
Fields and data
From a page of text to the values you need: tables, forms, invoices and JSON.
How to extract data from a PDF as JSON: four methods compared
Four ways to turn a PDF into named values: patterns, positions, a language model, or rules built and tested from samples. What each costs and how it fails.
How to extract invoice data in Python
Pull the number, dates, totals and line items out of a PDF invoice with pypdf and regular expressions, then check that the lines add up. With real output.
How to extract tables from a PDF in Python
Why pdfplumber returns no tables by default, and three ways that work on a table with no column lines: text strategy, PyMuPDF find_tables, and a layout split.
How to extract data from PDF forms
Read the answers out of fillable PDF forms with pypdf: every field with its type and value, checkboxes, and many forms into one CSV. Plus flat forms.
Template-based extraction: when fixed positions beat AI
How template-based and zonal extraction work, with Python code: reading fixed rectangles, why that fails silently when a layout shifts, and anchoring to labels.
Can ChatGPT extract data from PDFs?
ChatGPT and other AI assistants can extract data from PDFs. What works, the five ways it goes wrong, a prompt that helps, and when to use something else.
Getting clean PDF text for LLMs and RAG
How to prepare PDF text for a language model or a RAG index: reading order, page numbers, finding scanned pages, and chunks cut at paragraph ends. With code.
Without code, and choosing
Spreadsheets from folders of PDFs, sorting documents, the vocabulary, and what to test before you pick a tool.
How to extract data from many PDFs into one Excel sheet
Three ways to turn a folder of PDFs into one spreadsheet, a row per file: Excel's From PDF, a short Python script with its output, and an upload with no code.
How to classify documents automatically
Three ways to sort incoming documents by kind: the labels on the page, a trained model, or a language model. Python code for the first, and how to measure it.
Document extraction terms explained: OCR, ICR, IDP, parsing and more
Plain definitions of the words used for reading documents by machine: OCR, ICR, IDP, parsing, key-value extraction, zonal OCR, RAG, CER and the rest.
How to choose a PDF extraction API: nine things to test
Nine tests to run on any PDF or OCR extraction API with your own documents: text order, scans, languages, repeatability, errors, limits, price and privacy.