Felix Schütt
Felix Schütt
Text shaping is now supported in 0.8.2 with `--feature text_layout`, therefore you can now create underlined text by iterating over the `shaped_text.lines`. Proper underlined text via HTML is a larger...
This would be useful for packaging debian applications, especially when combined with configuration Like a configuration `deploy` which builds the crate in release mode, then creates the folders needed for...
Yeah, I am using wasip2 to run a web server on Fermyon Cloud, as a free alternative to a classical web server, therefore I need this target. wasm32-unknown-unknown is my...
To be fair, I haven't worked with spot colors. The library just converts them into a Stream of `lopdf::Operation`: https://github.com/fschutt/printpdf/blob/fbc7d691f988b0d295570bee072de932f4cabda2/src/color.rs#L22-L52 here, when you call `set_fill_color`, it calls `Operation::from`: https://github.com/fschutt/printpdf/blob/fbc7d691f988b0d295570bee072de932f4cabda2/src/pdf_layer.rs#L133 So...
You could create an API like this: ```rust PdfDocument::create_named_spotcolor(&mut document, ...) -> SpotColorRef { } enum PdfColor { ... NamedSpot(SpotColorRef), } impl From for lopdf::Operation { fn from(s: SpotColorRef) ->...
In the `0.8` API, all `Op`s now use units: ```rust /// Sets the outline thickness for texts / lines / polygons SetOutlineThickness { pt: Pt }, ```
I'll see. Thanks for your effort. I got it to work once, just in order to get font rendering to work for https://fschutt.github.io/printpdf/ - so I could decode fonts from...
I didn't write the bookmarks code but it's probably this line: https://github.com/fschutt/printpdf/blob/8e3b07290a566fef859cad6b3d6b1c1e2eec6878/src/pdf_document.rs#L714 `Literal` encoding means Windows-ANSI, it should be switched to `Hexadecimal` like this: ```rust let bytes = text .chars()...
Yeah, it should append the pages, so that you can do `PdfDocument::new("title").with_pages(pages).save(options);` I think the `pages` field is public, so then you could just replace it yourself.
Yeah, this is a pretty normal problem since PDF handles fonts / text specially. You'd have to first use a SVG library to convert the text to paths.