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§
- Clip
Path - A clip path.
- Context
- A context for interpreting PDF files.
- Fill
Props - Fill properties.
- Interpreter
Settings - Settings that should be applied during the interpretation process.
- Luma
Data - A structure holding 1-channel luma data.
- Paint
- A paint.
- A PDF file.
- RgbData
- A structure holding 3-channel RGB data.
- Soft
Mask - A soft mask.
- Stroke
Props - Stroke properties.
Enums§
- Fill
Rule - A fill rule.
- Interpreter
Warning - Warnings that can occur while interpreting a PDF file.
- Mask
Type - Type type of mask.
- Paint
Type - 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
opsand render them into the device.
Type Aliases§
- Font
Resolver Fn - A callback function for resolving font queries.
- Warning
Sink Fn - A callback function for resolving warnings during interpretation.