Expand description
printpdf PDF library, second API iteration version
Re-exports§
pub use annotation::*;pub use conformance::*;pub use matrix::*;pub use units::*;pub use date::*;pub use font::*;pub use graphics::*;pub use ops::*;pub use color::*;pub use xobject::*;pub use svg::*;pub use image::*;pub use html::*;
Modules§
- annotation
- Link / bookmark annotation handling Bookmarks, page and link annotations
- cmap
- color
- Color handling
- conformance
- PDF standard handling Module regulating the comparison and feature sets / allowed plugins of a PDF document
- date
- Date handling (stubs for platforms that don’t support access to time clocks, such as wasm32-unknown)
- font
- Font and codepoint handling
- graphics
- Point / line / polygon handling
- html
- HTML handling
- image
- Image decoding
- matrix
- Transformation and text matrices Current transformation matrix, for transforming shapes (rotate, translate, scale)
- ops
- Page operations
- svg
- SVG handling
- text
- units
- Units (Pt, Mm, Px, etc.) Scaling types for reducing errors between conversions between point (pt) and millimeter (mm)
- wasm
- 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
- PdfParse
Options - PdfResources
- PdfSave
Options - PdfTo
SvgOptions - PdfWarn
Msg - 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.