Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsurePdfcpuInit ¶
func EnsurePdfcpuInit()
EnsurePdfcpuInit initializes pdfcpu's global state exactly once. This must be called before any concurrent use of pdfcpu's NewDefaultConfiguration(). Safe to call from multiple goroutines; only the first call does work.
func EnsurePdfiumPoolInit ¶ added in v0.0.21
func EnsurePdfiumPoolInit() error
EnsurePdfiumPoolInit initializes the go-pdfium WASM pool if not already done. Safe to call multiple times; initialization happens at most once.
Types ¶
type OutlineEntry ¶ added in v0.0.21
OutlineEntry represents a single bookmark from a PDF's outline tree.
func ExtractOutline ¶ added in v0.0.21
func ExtractOutline(path string) ([]OutlineEntry, error)
ExtractOutline extracts the bookmark/outline tree from a PDF and returns a flat list of entries with their target page numbers. Returns nil (not an error) if the PDF has no bookmarks.
Click to show internal directories.
Click to hide internal directories.