Expand description
printpdf PDF library, second API iteration version
Re-exports§
pub use annotation::*;pub use cmap::*;pub use text::*;pub use wasm::*;pub use conformance::*;pub use matrix::*;pub use units::*;pub use date::*;pub use font::*;pub use shape::*;pub use graphics::*;pub use ops::*;pub use color::*;pub use xobject::*;pub use svg::*;pub use image::*;pub use html::*;pub use components::*;pub use serialize::*;pub use deserialize::*;
Modules§
- annotation
- Bookmarks, page and link annotation handling
- cmap
- /ToUnicode map serialization / parsing
- color
- Color handling
- components
- HTML component rendering (h1 - h6, li, ol, etc. - only relevant for –feature html)
- conformance
- PDF conformance / PDF standards handling and validation
- date
- Date parsing and serializiation
- deserialize
- Core utils for parsing PDF deserialize.rs
- font
- Font and codepoint handling
- graphics
- Point / line / polygon handling
- html
- HTML handling
- image
- Image decoding
- matrix
- Transformation and text matrices
- ops
- Page operations
- serialize
- Core utils for writing PDF
- shape
- Text shaping, to position text manually Text shaping and measurement
- svg
- SVG handling
- text
- Text encoding and decoding functions
- units
- Typed PDF units (Pt, Mm, Px, etc.)
- utils
- Utility functions (random strings, numbers, timestamp formatting)
- wasm
- WASM API functions
- xobject
- XObject handling
Structs§
- Extended
Graphics State Id - Internal ID for extended graphic states
- Extended
Graphics State Map - FontId
- Internal ID for Fonts
- Generate
PdfOptions - IccProfile
Id - Internal ID for ICC profiles
- Layer
Internal Id - Internal ID for Layers
- Page
Annot Id - Internal ID for page annotations
- Page
Annot Map - Parsed
IccProfile - PdfDocument
- Parsed PDF document
- PdfDocument
Info - PdfFont
Map - PdfLayer
Map - PdfMetadata
- This is a wrapper in order to keep shared data between the documents XMP metadata and the “Info” dictionary in sync
- PdfResources
- PdfTo
SvgOptions - XObject
Id - Internal ID for XObjects
- XObject
Map - XmpMetadata
- Initial struct for Xmp metatdata. This should be expanded later for XML handling, etc. Right now it just fills out the necessary fields
Enums§
- Base64
OrRaw - Base64 is necessary because there are a lot of JS issues surrounding
ArrayBuffer/Uint8Buffer/ByteArraytype mismatches, so a simpleatob/btoafixes that at the cost of slight performance decrease.