pub struct PdfParser {
pub mode: Option<String>,
pub max_pages: Option<usize>,
pub pages: bool,
pub raw: bool,
}Expand description
parsers 里 {type: "pdf"} 的选项。
Fields§
§mode: Option<String>fast、auto(默认)或 ocr。
max_pages: Option<usize>只输出前这么多页(1–10000)。
pages: bool另给每页的 Markdown(data.pages)。
raw: bool给了 parsers 却没有 pdf(比如 []):和 Firecrawl 一样不解析,把原文件按 base64
放进 markdown。
Implementations§
Trait Implementations§
impl Eq for PdfParser
impl StructuralPartialEq for PdfParser
Auto Trait Implementations§
impl Freeze for PdfParser
impl RefUnwindSafe for PdfParser
impl Send for PdfParser
impl Sync for PdfParser
impl Unpin for PdfParser
impl UnsafeUnpin for PdfParser
impl UnwindSafe for PdfParser
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.