docuparse 0.0.6

Document extraction and parsing - PDF text, rendering, and OCR
Documentation
1
2
3
4
5
6
7
8
9
pub const KB: u64 = 1024;
pub const MB: u64 = 1024 * KB;
pub const PDF_MAGIC: &[u8; 5] = b"%PDF-";

/// Minimum valid PDF size - anything smaller is corrupt or empty.
pub const MIN_PDF_SIZE: u64 = KB;

/// Maximum accepted PDF size.
pub const MAX_PDF_SIZE: u64 = 500 * MB;