pub struct ConversionOptions<'a> {
pub format: Option<InputFormat>,
pub include_bookmarks: bool,
pub allow_damaged: bool,
pub text_header_policy: TextHeaderPolicy,
pub fonts: Option<Fonts<'a>>,
}Expand description
What convert produces from a document.
Fields§
§format: Option<InputFormat>The input family; None detects it from the leading signature. An
explicit PDF must start with its %PDF- header.
include_bookmarks: boolWrite the CAJ, PDF or HN-A outline. C8/HN-B outlines are unverified and
never written; ConversionReport::outline says when one was omitted.
allow_damaged: boolReplace damaged CAJ pages with blank pages and report every omission.
text_header_policy: TextHeaderPolicyValidation of HN/C8 type-3 text-region headers. The default admits the measured HN/C8 unused-refinement-template anomaly; general JBIG2 APIs and every other malformed flag stay strict.
fonts: Option<Fonts<'a>>Fonts for native HN/C8 text. The core decides once per document
whether its text is native (crate::hnc8::uses_native_text); image
documents leave the fonts unread, so their PDF is byte-identical to a
conversion without fonts. Any other format refuses fonts with
FONTS_REQUIRE_HNC8.