printpdf icon indicating copy to clipboard operation
printpdf copied to clipboard

An easy-to-use library for writing PDF in Rust

Results 45 printpdf issues
Sort by recently updated
recently updated
newest added

First of all, thanks for this very useful crate! I noticed that every embedded fonts adds about ~ 150–200 KiB to the size of the output file. This quickly leads...

ColorSpace is just a simplified version of `ColorType` and is not used much in this library codebase. ![image](https://user-images.githubusercontent.com/32799668/167312533-fc0eb6ee-767e-427d-ba5c-570806c9fc9b.png) Replacing it with the `color_type` field in ImageXObject will give library users...

Every time I try to decode a PNG file with PngDecoded and add it to the PDF page, the PDF page is blank. My Rust code: ```rust use printpdf::*; use...

I have been wondering if it would be possible to get the length of a line of text for a certain font and at a certain font size. Something along...

I'm just a passerby checking your crate out on docs.rs, and it seems like the docs failed: ![image](https://user-images.githubusercontent.com/1429132/161160759-954d81ca-607a-4fb7-8938-2d8450fe81fa.png)

Currently, docs.rs doesn't show Image functions which are behind a "embedded_images" feature flag. Here is docs.rs's docs on how to enable it: https://docs.rs/about/metadata. I think adding this to Cargo.toml should...

I try to reuse the same SVG object on few pages. But I cannot find any better solution than just parse the same SVG file for each page. I found...

I used to embed an image like this: ``` rust let image_bytes = include_bytes!("../data/image.bmp"); let mut image_file = Cursor::new(image_bytes.as_ref()); let Bmp = image_crate::bmp::BmpDecoder::new(&mut image_file).unwrap(); let logo = Image::try_from(Bmp).unwrap(); ``` But...

Hi Felix, I could not help but notice that you recently added SVG support to `printpdf` using my `svg2pdf` crate (thanks!). Converting an SVG to a PDF often requires more...

When creating a PDF using printpdf, I've noticed that with custom fonts (specifically Roboto Slab and B612 Mono), when you try to select text in a PDF viewer the selection...