{"id":20852713,"url":"https://github.com/ninesstack/lazypdf","last_synced_at":"2025-07-04T05:08:34.982Z","repository":{"id":130361047,"uuid":"393052822","full_name":"NinesStack/lazypdf","owner":"NinesStack","description":"C/Go PDF Rasterizer built around MuPDF","archived":false,"fork":false,"pushed_at":"2021-08-05T13:31:51.000Z","size":955,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-12T13:11:41.975Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NinesStack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-05T13:29:00.000Z","updated_at":"2022-03-16T02:29:54.000Z","dependencies_parsed_at":"2024-06-20T12:54:43.227Z","dependency_job_id":"ff9f93c2-3411-4ace-b810-6037586f284b","html_url":"https://github.com/NinesStack/lazypdf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NinesStack/lazypdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinesStack%2Flazypdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinesStack%2Flazypdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinesStack%2Flazypdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinesStack%2Flazypdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NinesStack","download_url":"https://codeload.github.com/NinesStack/lazypdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinesStack%2Flazypdf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263450010,"owners_count":23468153,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T03:18:40.329Z","updated_at":"2025-07-04T05:08:34.949Z","avatar_url":"https://github.com/NinesStack.png","language":"Go","readme":"LazyPDF\n=======\n\nThis began as a rollback fork of https://github.com/Nitro/lazypdf to return it\nto use as a library.\n\n[![](https://travis-ci.org/Nitro/lazypdf.svg?branch=master)](https://travis-ci.org/Nitro/lazypdf)\n\nThis is a rasterizing engine for PDF documents, built around MuPDF. It exports\na Go interface that allows the creation of a `Rasterizer` for each document you\nwish to be able to rasterize to images.  It generated Go `image.Image`s and you\ncan then render these as PNG/JPEG/etc by using the Go stdlib functions for\ndoing that (`image/jpeg`, `image/png`).\n\nBuilding\n--------\n\nYou can simply run `./build` and the shell script will do all the right things\non either Linux or OSX.\n\nInstalling\n----------\n\nYou cannot simply `go get` this library. It pulls in and links against C code\nwhich is external to this repository for licensing reasons (the MuPDF library\nis AGPL). Thus, in order to build this library, you need to run the `build`\nshell script to pull down and compile MuPDF first.\n\nAnything that you then want to link against this library will need to use the\ncorrect Cgo configuration.  That should look like:\n\n```go\n// #cgo CFLAGS: -I. -I./mupdf-1.12.0-source/include -I./mupdf-1.12.0-source/include/mupdf -I./mupdf-1.12.0-source/thirdparty/openjpeg -I./mupdf-1.12.0-source/thirdparty/jbig2dec -I./mupdf-1.12.0-source/thirdparty/zlib -I./mupdf-1.12.0-source/thirdparty/jpeg -I./mupdf-1.12.0-source/thirdparty/freetype -g\n// #cgo LDFLAGS: -L./mupdf-1.12.0-source/build/release -lmupdf -lmupdfthird -lm -ljbig2dec -lz -lfreetype -ljpeg -lcrypto -lpthread\n// #include \u003cfaster_raster.h\u003e\nimport \"C\"\n```\n\n`\u003crelative path\u003e` in this case should be the relative location of this library\nto your project. If you are building a Go project under the `github.com/Nitro`\nfolder, this would usually be `../lazypdf`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninesstack%2Flazypdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fninesstack%2Flazypdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninesstack%2Flazypdf/lists"}