lazypdf

package module
v0.0.0-...-f091152 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

README

LazyPDF

This is a rasterizing engine for PDF documents built around MuPDF. Works on Linux and macOS.

Building

go build

Testing

go test -race

Updating MuPDF library

To update MuPDF library simply change its version at misc/mupdf/version and submit the change at a pull request. GitHub Actions will then trigger the process of updating the library and headers through a series of commits at the pull request branch.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PageCount

func PageCount(ctx context.Context, rawPayload io.Reader) (int, error)

PageCount is used to return the page count of the document.

func SaveToPNG

func SaveToPNG(ctx context.Context, page, width uint16, scale float32, rawPayload io.Reader, output io.Writer) error

SaveToPNG is used to convert a page from a PDF file to PNG.

Types

This section is empty.

Jump to

Keyboard shortcuts

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