https://github.com/wyatt-herkamp/tux-pdf
A simple to use PDF lib for Rust
https://github.com/wyatt-herkamp/tux-pdf
Last synced: 2 months ago
JSON representation
A simple to use PDF lib for Rust
- Host: GitHub
- URL: https://github.com/wyatt-herkamp/tux-pdf
- Owner: wyatt-herkamp
- License: apache-2.0
- Created: 2024-12-23T14:56:45.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-21T13:16:37.000Z (2 months ago)
- Last Synced: 2025-02-21T14:24:58.295Z (2 months ago)
- Language: Rust
- Homepage:
- Size: 8.79 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Tux-PDF
A simple to use PDF generator for Rust
PDF Specification: https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf
## Goals
The goal of this library to provide an easy way of generating pdfs. Specifically PDF that contains report, invoice, etc type data.
Allowing to do tables and text formatting.
Without sacrificing all the time in the world to generate a pdf.
## Current State
Early development stage. Not ready for use.- [x] Basic PDF Creation
- [x] Text Rendering
- [ ] Fonts
- [X] Custom Fonts
- [ ] Emoji Fonts
- [ ] Built In Pdf Fonts (They work however, no metrics are provided meaning text is not correctly positioned)
- [ ] External Objects
- [X] Images
- [ ] SVG
- [ ] Other External Object Types
- [ ] Graphics
- [x] Lines
- [ ] Shapes (Circles, Rectangles, etc)
- [ ] Paths
- [ ] ICC Color Profiles
- [x] Layers
- [ ] More Intutive API
- [ ] Layouts and Tables
- [x] Tables (Works but needs to be improved)
- [x] Grid Layout And Flex Layout using [Taffy](https://github.com/DioxusLabs/taffy)
- [ ] Wasm Support (Not tested yet would like to have an example web app)### Known Issues
- [ ] Alpha Values are not supported
- [ ] Built-in Fonts are barely supported
- [ ] Inconsistent shapes system
- [ ] Inconsistent and confusing styling api## Examples
- [CSV to PDF](examples/csv_to_pdf/main.rs) - A simple example of how to convert a csv file to a pdf
- [Hello World](examples/hello_world/main.rs) - Shows hello world and an image## License
Licensed under either of these:
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)