Skip to main content

pdfboss_core/
lib.rs

1//! Core PDF machinery: syntax, objects, filters, cross-references, the
2//! document model, and lazy element iteration (physical file structure with
3//! byte spans plus logical document structure), implemented from the PDF
4//! specification (ISO 32000).
5
6pub mod cmap;
7pub mod content;
8pub mod crypt;
9pub mod document;
10pub mod elements;
11pub mod error;
12pub mod filters;
13pub mod geom;
14pub mod hash;
15pub mod lexer;
16pub mod object;
17pub mod objstm;
18pub mod oc;
19pub mod parser;
20pub mod pretty;
21pub mod source;
22pub mod xref;
23
24pub use cmap::{cid_to_unicode, type0_encoding, CidCmap, CidToUnicode, Type0Encoding};
25pub use crypt::Decryptor;
26pub use document::{
27    content_stream_data_with, decoded_stream_data_with, map_pages, page_content_with, Document,
28    DocumentSeed, Metadata, Page,
29};
30pub use elements::{Element, ElementOpts, Span, XrefKind};
31pub use error::{Error, Result};
32pub use geom::{Matrix, Point, Rect};
33pub use hash::{FastMap, FastSet, FxHasher};
34pub use object::{Dict, Name, ObjRef, Object, Stream};
35pub use oc::OcState;
36pub use source::{
37    block_on, resolve_sync_with, resolve_with, AsyncObjectSource, BoxFuture, Immediate,
38    ObjectSource, MAX_RESOLVE_DEPTH,
39};