pdfutil

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractPDFTextSafe

func ExtractPDFTextSafe(ctx context.Context, path string, maxBytes int) (string, error)

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.

Jump to

Keyboard shortcuts

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