pages

package
v1.115.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package pages counts a PDF's pages and appends another PDF's pages to it as an incremental update, so the first document's bytes stay exactly as they were.

The appended pages bring everything they reference, renumbered. When both documents are tagged, the appendix's structure tree is joined to the document's: its elements go under the document's own top-level element and its parent-tree keys are moved past the document's, so assistive technology reads one document rather than two.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(document []byte, appendix []byte) ([]byte, error)

Append returns the document with the appendix's pages after its own, written as an incremental update; the document's bytes are an exact prefix of the result.

func Count

func Count(data []byte) (int, error)

Count returns the number of pages in a document.

Types

This section is empty.

Jump to

Keyboard shortcuts

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