Help us shape the future of Go! Take the 2026 Go Developer Survey

pdfstat

package
v0.0.0-...-4e9e894 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package pdfstat counts things in a PDF — link annotations above all — through go-pdfkit/reader, the org's own parser: cross-reference streams, object streams and filters are its job, so a document written with PDF 1.5 object streams (where the annotation dictionaries live packed and compressed) counts the same as a classic one, and a count is a count of objects on pages rather than of a byte pattern in the file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountLinks(b []byte) int

CountLinks returns the number of /Subtype /Link annotations reachable from the page tree, or -1 when the bytes are not a PDF the reader opens.

Types

This section is empty.

Jump to

Keyboard shortcuts

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