Ruby
PDF Text Extraction Examples for Ruby
Getting Started
- Extract Text from a PDF
- Extract PDF Text to a StringBuilder and Save to a File
- Extract Text from Specific PDF Pages
- PDF Text Layouts: flow, lines and grid
PDF to Markdown
- Extract PDF to Markdown
- PDF to Markdown Options: Page Breaks, Images, Tables, Emphasis, Heading Levels
- PDF Footnotes in Markdown: Inline, at the End, or Dropped
- Code Blocks and Code Spans in PDF to Markdown
Searching and Finding Values
- Search for Text in a PDF
- Search a PDF with a Regular Expression
- Get a PDF Field Value by its Label (Value to the Right)
- Get the Text Block Below a PDF Caption
- Get Every Occurrence of a Label in a PDF
- Extract One Section of a PDF by its Heading
Tables and Form Fields
- Extract Tables from a PDF
- Extract a PDF Table with Merged Cells
- Extract the Values of PDF Form Fields
Page Layout: Columns, Headers and Margins
- Extract Text from a Two-Column PDF
- Exclude or Include Running Headers and Page Numbers
- Exclude Rotated Margin Text from PDF Extraction
- Clipped, Off-Page and White-on-White Text in PDF Extraction
Text Quality, OCR and Unicode
- Assess PDF Text Quality Before Extracting
- Extract the OCR Text Layer of a Scanned PDF
- Rejoin Words Hyphenated at Line Ends
- Expand Ligatures and Normalize Unicode in Extracted PDF Text
- Extract Right-to-Left (Hebrew, Arabic) Text in Logical Order
Password-Protected and Copy-Protected PDFs
- Extract Text from a Password-Protected PDF
- Extract Text from a PDF that Forbids Copying