pdf

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PdfiumInstance pdfium.Pdfium

Functions

func ClosePdfium

func ClosePdfium()

func LoadPdfium

func LoadPdfium() error

func NormalizePageRange

func NormalizePageRange(pageCount int, pageRange string, ignoreInvalidPages bool) (*string, *int, error)

NormalizePageRange converts a page range into separate page numbers so that we can support a more range of page range options compared to Pdfium. Pdfium only supports simple instructions like 1-5 or just a page number. This method can automatically calculate ends and reverse pages for example. This way we can also properly validate page ranges.

Types

This section is empty.

Jump to

Keyboard shortcuts

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