Documentation
¶
Overview ¶
Package pdf is an Extractor for PDF files, backed by the pure-Go github.com/ledongthuc/pdf (no cgo, so the static-binary and cross-compile goals hold). Extraction is best-effort text in reading order — layout, columns, and tables are not preserved, and scanned/image-only PDFs yield nothing. The library can panic on malformed input, so Extract recovers and reports an error rather than crashing the process.
Index ¶
Constants ¶
View Source
const ContentType = "application/pdf"
ContentType is the media type for PDF files.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extractor ¶
type Extractor struct{}
Extractor extracts plain text from PDF content. Its zero value is ready.
Click to show internal directories.
Click to hide internal directories.