Skip to content
/ lazypdf Public

Project containing the deployment code for lazypdf

License

Notifications You must be signed in to change notification settings

Nitro/lazypdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LazyPDF

This is a rasterizing engine for PDF documents built around MuPDF and jemalloc.

Using

Run the command go get github.com/nitro/lazypdf/v2 to add the dependency to your project. The documentation can be found here.

Building

go build

Testing

go test -race

Working with macOS

Unfortunately this repository does not supports macOS. In order to run and test the code on macOS, run the code inside a Docker container:

docker run --rm -it --platform linux/amd64 -v ${PWD}:/code -w /code golang:1.22.4

Updating the native libraries

To update MuPDF or jemalloc simply change its version at misc/{library}/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.