Skip to main content

printwell_pdf/
lib.rs

1//! PDF manipulation features for printwell.
2//!
3//! This crate provides optional PDF manipulation features:
4//! - `encrypt`: Password protection and encryption
5//! - `forms`: `AcroForms` support for adding form fields
6//! - `signing`: Digital signature support (`PAdES`)
7//! - `watermark`: Text and image watermark support
8
9#![warn(missing_docs)]
10
11#[cfg(feature = "encrypt")]
12pub mod encrypt;
13
14#[cfg(feature = "forms")]
15pub mod forms;
16
17#[cfg(feature = "watermark")]
18pub mod watermark;
19
20#[cfg(feature = "bookmarks")]
21pub mod bookmarks;
22
23#[cfg(feature = "signing")]
24pub mod crypto;
25
26#[cfg(feature = "signing")]
27pub mod signing;
28
29#[cfg(feature = "annotations")]
30pub mod annotations;
31
32#[cfg(feature = "pdfa")]
33pub mod pdfa;
34
35#[cfg(feature = "pdfua")]
36pub mod pdfua;
37
38mod error;
39
40pub use error::{
41    AnnotationError, BookmarkError, EncryptionError, Error, FormError, PdfAError, PdfUAError,
42    Result, SigningError, WatermarkError,
43};
44
45#[cfg(test)]
46mod tests;