pub struct ConvertOptions {
pub max_input_bytes: u64,
pub max_zip_entry_bytes: u64,
pub max_pages: usize,
pub max_xml_events: usize,
pub include_metadata: bool,
pub precision: usize,
pub jobs: usize,
pub outline_embedded_pdf_text: bool,
pub stencil_paths: Vec<PathBuf>,
pub embed_drawio_source: bool,
}Fields§
§max_input_bytes: u64§max_zip_entry_bytes: u64Maximum expanded PDF stream or ZIP entry/image bytes.
max_pages: usize§max_xml_events: usize§include_metadata: bool§precision: usize§jobs: usize§outline_embedded_pdf_text: boolRender embedded PDF fonts as exact glyph outlines instead of editable substitute-font text. This improves fidelity but requires the caller to verify the source font’s outline/embedding rights.
stencil_paths: Vec<PathBuf>draw.io shape libraries to draw shape=mxgraph.<library>.<name> with.
Each entry is a stencil XML file or a directory of them, as shipped in
draw.io’s own stencils folder. Without one, a shape from a library is
drawn as a labelled placeholder, because the outline lives in the
library rather than in the diagram. A shape the diagram carries inline,
as shape=stencil(...), is always drawn.
embed_drawio_source: boolKeep a copy of a draw.io page’s own source in the SVG it produces, in
the content attribute draw.io itself uses.
The SVG stays a picture for every renderer, and both draw.io and
crate::svg_to_document can restore the editable diagram from it.
Off by default: it roughly doubles the output and puts the source
document inside a file that is usually shared as an image.
Trait Implementations§
Source§impl Clone for ConvertOptions
impl Clone for ConvertOptions
Source§impl Debug for ConvertOptions
impl Debug for ConvertOptions
Auto Trait Implementations§
impl Freeze for ConvertOptions
impl RefUnwindSafe for ConvertOptions
impl Send for ConvertOptions
impl Sync for ConvertOptions
impl Unpin for ConvertOptions
impl UnsafeUnpin for ConvertOptions
impl UnwindSafe for ConvertOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().