Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPDFTextSafe ¶
ExtractPDFTextSafe extracts text from a local PDF with a byte limit and panic recovery.
func ExtractPDFTextSafeFromBytes ¶ added in v0.22.0
func ExtractPDFTextSafeFromBytes(ctx context.Context, data []byte, maxTextBytes int64) (text string, err error)
ExtractPDFTextSafeFromBytes extracts text from in-memory PDF bytes.
It mirrors ExtractPDFTextSafe for local files but avoids writing URL-fetched PDFs to disk. It is panic-safe because PDF parsers may panic on malformed input.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.