pub struct PdfMarkdownBuilder { /* private fields */ }Expand description
PDF 到 Markdown 的链式内存转换构建器。
Implementations§
Source§impl PdfMarkdownBuilder
impl PdfMarkdownBuilder
Sourcepub fn from_bytes(bytes: impl Into<Vec<u8>>) -> Self
pub fn from_bytes(bytes: impl Into<Vec<u8>>) -> Self
从内存 PDF 字节创建转换任务。
Sourcepub fn from_input(input: PdfInput) -> Self
pub fn from_input(input: PdfInput) -> Self
从统一 PDF 输入创建转换任务。
Sourcepub const fn profile(self, profile: MarkdownProfile) -> Self
pub const fn profile(self, profile: MarkdownProfile) -> Self
设置 Markdown 输出配置档。
Sourcepub const fn tables(self, policy: TablePolicy) -> Self
pub const fn tables(self, policy: TablePolicy) -> Self
设置表格策略。
Sourcepub fn images(self, policy: ImagePolicy) -> Self
pub fn images(self, policy: ImagePolicy) -> Self
设置图片策略。
Sourcepub const fn resource_limits(self, limits: ResourceLimits) -> Self
pub const fn resource_limits(self, limits: ResourceLimits) -> Self
设置资源限制。
Sourcepub fn processor(self, processor: Arc<dyn PdfMarkdownProcessor>) -> Self
pub fn processor(self, processor: Arc<dyn PdfMarkdownProcessor>) -> Self
注册一个语义增强处理器。
Sourcepub fn do_convert(self) -> Result<MarkdownConversionResult>
pub fn do_convert(self) -> Result<MarkdownConversionResult>
Trait Implementations§
Source§impl Clone for PdfMarkdownBuilder
impl Clone for PdfMarkdownBuilder
Source§fn clone(&self) -> PdfMarkdownBuilder
fn clone(&self) -> PdfMarkdownBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PdfMarkdownBuilder
impl !UnwindSafe for PdfMarkdownBuilder
impl Freeze for PdfMarkdownBuilder
impl Send for PdfMarkdownBuilder
impl Sync for PdfMarkdownBuilder
impl Unpin for PdfMarkdownBuilder
impl UnsafeUnpin for PdfMarkdownBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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 more