Crates.io | |
lib.rs | |
version | 0.9.0 |
source | src |
created_at | 2015-08-07 13:47:56.074715 |
updated_at | 2023-11-30 17:54:54.784858 |
description | PDF reader |
homepage | |
repository | https://github.com/pdf-rs/pdf |
max_upload_size | |
id | 2778 |
size | 406,183 |
Read, alter and write PDF files.
Modifying and writing PDFs is still experimental.
One easy way you can contribute is to add different PDF files to tests/files
and see if they pass the tests (cargo test
).
Feel free to contribute with ideas, issues or code! Please join us on Zulip if you have any questions or problems.
This repository uses a Cargo Workspace and default members. This means by default only the pdf
library is build.
To build additional parts, pass --package=read
to build the subcrate you are interested in (here the read
example).
Examples are located in pdf/examples/
and can be executed using:
cargo run --example {content,metadata,names,read,text} -- <files/{choose a pdf}>
A library for rendering PDFs via Pathfinder and minimal viewer can be found here.
There is a tool for visualizing a PDF file as an interactive hierarchy of primitives at inspect-prim. Just clone and cargo run
.