pub struct PdfOptions {
pub compression: u8,
pub inherit_color: bool,
pub metadata: Metadata,
pub simplify: SimplifySettings,
pub composite_images: bool,
pub fonttype: FontType,
pub subset_fonttype: FontType,
pub core_fonts: bool,
}Expand description
Settings of a PDF document (matplotlib’s pdf.* rcParams and the
metadata argument of savefig).
Fields§
§compression: u8pdf.compression: zlib level of the streams, 0 to store them.
inherit_color: boolpdf.inheritcolor: leave stroke and fill colours unset.
metadata: MetadataTitle, creator, producer and creation date.
simplify: SimplifySettingspath.simplify and path.simplify_threshold.
composite_images: boolimage.composite_image.
fonttype: FontTypepdf.fonttype: how TrueType fonts are embedded.
subset_fonttype: FontTypeThe font type whose subset size groups the character codes of the
embedded fonts: ps.fonttype, which matplotlib’s PDF writer reads
for it (PdfFile._character_tracker), whatever pdf.fonttype
says.
core_fonts: boolpdf.use14corefonts: text that is not mathtext is drawn in the 14
PDF core fonts, measured with their metrics.
Implementations§
Source§impl PdfOptions
impl PdfOptions
Sourcepub fn afm_directory(&self) -> Option<AfmDirectory>
pub fn afm_directory(&self) -> Option<AfmDirectory>
The AFM fonts text that is not mathtext is drawn in, and must be
measured with, if any (RendererPdf._afm_font_dir when
pdf.use14corefonts is set).