extract_text

command
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 6 Imported by: 0

README

Extract Text Example

This example wires the high-level extractor package into a tiny CLI and prints the consolidated text discovered on each page. Because it leverages the shared extraction pipeline, it automatically benefits from ToUnicode maps, embedded font decoding, and any future improvements made to the core library.

Run

  1. Produce or pick a PDF. For instance, reuse the invoice sample:
    go run ./examples/invoice invoice.pdf
    
  2. Extract text:
    go run ./examples/extract_text invoice.pdf
    

The program reports each page (with labels when available) and a best-effort concatenation of the text that the extractor resolves.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL