printpdf
printpdf copied to clipboard
An easy-to-use library for writing PDF in Rust
Reading opentype fonts(.otf) or truetype collection files (.ttc) causes panic! ``` let mut font_reader = std::io::Cursor::new(include_bytes!("../assets/fonts/Cantarell-Bold.otf").as_ref()); let font = doc.add_external_font(&mut font_reader).unwrap(); ``` The second line caused panic, and retrun Rusttype(IllFormed)....
``` error: expected an item keyword --> /home/qtfkwk/.cargo/registry/src/github.com-1ecc6299db9ec823/time-0.2.8/src/utc_offset.rs:366:13 | 366 | let tm = timestamp_to_tm(datetime.timestamp())?; | ^^^ | ::: /home/qtfkwk/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.9/src/lib.rs:41:40 | 41 | if #[cfg($($meta:meta),*)] { $($it:item)* } | --------...
I love this library it's easy to use and understand, perfect. The only issue I'm running into currently is multiline strings e.g. let text_source_address = "610 Monroe St.\nStoudsburg, PA 18630-2115";...
I am generating a large pdf where every page consists of the same layout with only the text varying. Is it possible to insert the bitmap only once in order...
Hey, Would be great with a example for rendering SVG.
Hi! I am new to Rust. I want to show wasm generated pdf with live changes in browser. How can I solve this shared reference problem? Is there a trait...
Hi! I wanted to know if this library supports RTL languages or not? In terms of writing and also in terms of layout and alignment. If not, can you please...
I'm trying to insert text on different layers but I can only insert text on the first layer. When I try to insert text into other layers, the text does...
Not sure how the readme file is generated? but it's still showing the old process for adding lines on crates.io and I can see in the repo the readme file...
I created a PDF with 2000 pages and 40MB ttf file, which took me over ten minutes. After trying to return Option instead, it changed to a few seconds. And...