Crate hayro_interpret

Source
Expand description

A crate for interpreting PDF files.

This crate provides an abstraction to interpret the content of a PDF file and render them into an abstract Device, which clients can implement as needed. This allows you, for example, to render PDF files to bitmaps (which is what the hayro crate does), or other formats such as SVG.

It should be noted that this crate is still very much in development. Therefore it currently lacks pretty much any documentation on how to use it. It’s current API also only really makes it useful for rendering to PNG or SVG, though this will be improved upon in the future.

§Cargo features

This crate has one feature, jpeg2000. See the description of hayro-syntax for more information.

Re-exports§

pub use hayro_syntax;

Modules§

color
PDF colors and color spaces.
font
Interacting with the different kinds of PDF fonts.
pattern
PDF patterns.
shading
PDF shadings.
util
A number of utility methods.

Structs§

ClipPath
A clip path.
Context
A context for interpreting PDF files.
FillProps
Fill properties.
InterpreterSettings
Settings that should be applied during the interpretation process.
LumaData
A structure holding 1-channel luma data.
Paint
A paint.
Pdf
A PDF file.
RgbData
A structure holding 3-channel RGB data.
SoftMask
A soft mask.
StrokeProps
Stroke properties.

Enums§

FillRule
A fill rule.
InterpreterWarning
Warnings that can occur while interpreting a PDF file.
MaskType
Type type of mask.
PaintType
A type of paint.

Traits§

Device
A trait for a device that can be used to process PDF drawing instructions.

Functions§

interpret
Interpret the instructions from ops and render them into the device.

Type Aliases§

FontResolverFn
A callback function for resolving font queries.
WarningSinkFn
A callback function for resolving warnings during interpretation.