1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! # hipdf
//!
//! A high-level PDF manipulation library built on lopdf, focusing on ease of use
//! and powerful abstractions for common PDF operations.
//!
//! ## Features
//!
//! - **OCG (Optional Content Groups) Support**: Easy creation and management of PDF layers
//! - **Layer Management**: High-level API for organizing content into toggleable layers
//! - **Content Building**: Fluent API for building layered PDF content
//! - **Type Safety**: Strongly typed interfaces with compile-time guarantees
//! - **WASM Support**: Automatic configuration for WebAssembly targets
//!
//! ## Example
//!
//! ```rust
//! use hipdf::ocg::{OCGManager, Layer, LayerContentBuilder, LayerOperations as Ops};
//! use lopdf::{Document, Object};
//!
//! // Create a new PDF with layers
//! let mut doc = Document::with_version("1.5");
//! let mut ocg_manager = OCGManager::with_config(Default::default());
//!
//! // Add layers
//! ocg_manager.add_layer(Layer::new("Background", true));
//! ocg_manager.add_layer(Layer::new("Main Content", true));
//!
//! // Initialize layers in document
//! ocg_manager.initialize(&mut doc);
//! ```
//!
//! ## Modules
//!
//! - [`ocg`] - Optional Content Groups (layers) functionality
//! - [`hatching`] - Hatching and pattern support for PDF documents
//! - [`embed_pdf`] - Embedding existing PDF documents
//! - [`blocks`] - Block content management
//! - [`images`] - Image embedding and manipulation
//! - [`fonts`] - Font management and embedding
pub use lopdf;
// Common type aliases and utilities
pub type Result<T> = Result;
pub type Error = ;