Crate printpdf

Source
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§

ExtendedGraphicsStateId
Internal ID for extended graphic states
ExtendedGraphicsStateMap
FontId
Internal ID for Fonts
GeneratePdfOptions
IccProfileId
Internal ID for ICC profiles
LayerInternalId
Internal ID for Layers
PageAnnotId
Internal ID for page annotations
PageAnnotMap
ParsedIccProfile
PdfDocument
Parsed PDF document
PdfDocumentInfo
PdfFontMap
PdfLayerMap
PdfMetadata
This is a wrapper in order to keep shared data between the documents XMP metadata and the “Info” dictionary in sync
PdfParseOptions
PdfResources
PdfSaveOptions
PdfToSvgOptions
PdfWarnMsg
XObjectId
Internal ID for XObjects
XObjectMap
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§

Base64OrRaw
Base64 is necessary because there are a lot of JS issues surrounding ArrayBuffer / Uint8Buffer / ByteArray type mismatches, so a simple atob / btoa fixes that at the cost of slight performance decrease.