easypdf

package
v0.0.0-...-42f557a Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

A minimal facade encapsulating the pdfcpu API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EditBookmarks

func EditBookmarks(pdfFile *os.File, outputFilename string, replace bool, bookmarks *BookmarkTree) error

Types

type Bookmark

type Bookmark struct {
	Page     int
	Title    string
	Children []*Bookmark
}

type BookmarkTree

type BookmarkTree struct{ TopLevel []*Bookmark }

func (*BookmarkTree) Count

func (t *BookmarkTree) Count() int

func (*BookmarkTree) Inspect

func (t *BookmarkTree) Inspect(f func(*Bookmark))

Inspect traverses the bookmark tree in depth-first order. For each top-level bookmark b, Inspect calls f(b), then invokes f recursively for each child of b.

type PDFInfo

type PDFInfo struct {
	PageCount int
}

func ExtractPDFInfo

func ExtractPDFInfo(pdfFile *os.File) (*PDFInfo, error)

Jump to

Keyboard shortcuts

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