~qualitymix


#63 More text effects 3 months ago

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?

#63 More text effects 3 months ago

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.

#19 Explicit line breaks inside of paragraphs 3 months ago

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));
}

#19 Explicit line breaks inside of paragraphs 3 months ago

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.