printpdf
printpdf copied to clipboard
An easy-to-use library for writing PDF in Rust
Adobe reader from https://get.adobe.com/pl/reader/enterprise/ shows problem when using font in pdf ``` Font F0 contains not valid /BBox ``` Zip with file [test_fonts.zip](https://github.com/fschutt/printpdf/files/12781526/test_fonts.zip)
``` current_layer.begin_text_section(); current_layer.set_font(&font, FONT_SIZE_COMMENTS); current_layer.add_line_break(); current_layer.set_text_cursor(Mm(10.0), Mm(10.0)); current_layer.set_line_height(10.0); current_layer.write_text("AAAAAAA", &font); current_layer.set_text_matrix(TextMatrix::Rotate(45.0)); current_layer.write_text("All rights reserved.", &font); current_layer.end_text_section(); ``` With such code, `All rights reserved`, should start with same position like "AAAA",...
``` layer.use_text( format!("{} ", header), FONT_SIZE, Mm(position.x), Mm(PAGE_HEIGHT - position.y - idx as f32 * 5.0), &fonts[&Fonts::RobotoRegular], ); layer.write_text(*data, &fonts[&Fonts::RobotoBold]); layer.use_text( format!("{} ", header), FONT_SIZE, Mm(position.x), Mm(PAGE_HEIGHT - position.y -...
Hello, I've noticed that some functions like set_outline_thickness takes a f64 argument for the outline thickness. It's not clear whether the input is in points or millimeters. I propose to...
Will you implement vertical text. I dont mean rotate, but like the example:  I know it could be acieved by creating for each char a new line and create...
i create a pdf file with just two Chinese characters. But the file size is 56MB. The font i use is 'STHeiti Medium.ttc' on mac which size is 53MB.
Hi! Thanks for this lib, which I'm currently using via genpdf. I couldn't see a way to underline text, using either genpdf or printpdf? Any chance of supporting that, or...
As I understood the code, printpdf does no text shaping and generates a glyph ID for each code point. In #73 @fschutt mentioned that, ideally, the shaping engine should be...
svg2pdf and usvg have newer versions, but updating them is not trivial
I have printpdf = "0.7.0" in my Cargo.toml If I run my Rust binary independently, there are no issues. However, we are building all our services as wasm32-wasi targets. When...