Comment by ~qualitymix on ~ireas/genpdf-rs
Speaking of the render module, I cannot figure out how to use it in combination with the higher-level modules provided by genpdf. Any tips?
Ticket created by ~qualitymix on ~ireas/genpdf-rs
Specifically, I'm looking for how to implement underlining. I've tried using the text-style crate, however it doesn't render any of the effects it can provide. It provides underline and strikethrough but neither work.
Comment by ~qualitymix on ~ireas/genpdf-rs
I also just wrote this short solution that works for my documents:
let split_text = p_entry.desc.split("\n"); let vec: Vec<&str> = split_text.collect(); for cleaned_text in vec { doc.push(elements::Paragraph::new(cleaned_text)); }
Comment by ~qualitymix on ~ireas/genpdf-rs
For the time being, is there anything that genpdf does respond to as a line break? I can easily parse my text and replace the \n's with anything else.