Module text_style::genpdf [−][src]
Expand description
Conversion methods for genpdf
’s text style types.
Requires the genpdf
feature.
This module implements these conversions:
Color
togenpdf::style::Color
Style
togenpdf::style::Style
StyledStr
andStyledString
togenpdf::style::StyledStr
andgenpdf::style::StyledString
Example
Adding a string to a paragraph:
let text = text_style::StyledStr::plain("test").bold(); let p = genpdf::elements::Paragraph::new(text);