Skip to main content

oxidize_pdf/objects/
mod.rs

1//! PDF Object Types (Writer Module)
2//!
3//! # Migration Notice
4//!
5//! This module is being unified with the parser types in `crate::pdf_objects`.
6//! The types here will be deprecated in v1.6.0 and removed in v2.0.0.
7//!
8//! **Migration Path**:
9//! - `objects::Object` → `crate::pdf_objects::Object`
10//! - `objects::Dictionary` → `crate::pdf_objects::Dictionary`
11//! - `objects::ObjectId` → `crate::pdf_objects::ObjectId`
12//! - `objects::Array` → `crate::pdf_objects::Array`
13//! - `objects::Stream` → `crate::pdf_objects::Stream`
14//!
15//! The unified types in `pdf_objects` provide:
16//! - Zero-overhead conversion between parser and writer
17//! - Type-safe newtypes (Name, BinaryString)
18//! - Consistent API across the library
19//! - Better support for binary PDF strings
20
21mod array;
22mod dictionary;
23mod primitive;
24mod stream;
25
26pub use array::Array;
27pub use dictionary::Dictionary;
28pub use primitive::{Object, ObjectId};
29pub use stream::Stream;
30
31// Type alias for compatibility
32pub type ObjectReference = ObjectId;