Skip to main content

Crate zpdf_core

Crate zpdf_core 

Source

Modules§

time
Wall-clock access that degrades gracefully on wasm32-unknown-unknown.

Structs§

Matrix
3x2 affine transformation matrix.
ObjectId
Indirect object identifier: (object number, generation number).
ParseLimits
Security limits for PDF parsing. PDF is an untrusted input format.
PdfDict
PDF dictionary: ordered map of Name → PdfObject.
PdfName
PDF Name object (e.g., /Type stored as "Type").
PdfStream
PDF stream object: dictionary + raw byte range (lazy decode).
PdfString
PDF string (literal or hexadecimal).
Point
Rect
PDF rectangle: [x0, y0, x1, y1] (lower-left, upper-right).

Enums§

Error
PdfObject
All PDF object types.

Functions§

cmyk_to_rgb_naive
Naïve subtractive CMYK → sRGB: r=(1−c)(1−k), g=(1−m)(1−k), b=(1−y)(1−k). The exact inverse of rgb_to_cmyk_naive. Inputs clamped to 0.0..=1.0.
rgb_to_cmyk_naive
Naïve sRGB → subtractive CMYK with maximum GCR (k = 1 − max(r,g,b)), the exact inverse of cmyk_to_rgb_naive. Pure black/white map to (0,0,0,1) / (0,0,0,0). Inputs clamped to 0.0..=1.0.

Type Aliases§

Result