Skip to main content

otf_pdf_doc/
lib.rs

1//! Document layer: the page tree, metadata, outlines and attachments on top
2//! of the syntax layer's lazily parsed objects, a copy-on-write overlay for
3//! edits, and full and incremental save.
4#![forbid(unsafe_code)]
5
6mod document;
7mod edit;
8mod pages;
9mod sanitize;
10mod save;
11mod store;
12mod text;
13mod xmp;
14
15pub use document::{Attachment, Document, Info, OutlineItem, name_tree};
16pub use edit::{AttachmentOptions, import};
17pub use pages::{Page, Rect};
18pub use sanitize::{SanitizeOptions, SanitizeReport};
19pub use save::{Encryption, SaveMode, SaveOptions};
20pub use store::Store;
21pub use text::{decode_text_string, encode_text_string, pdf_doc_char};