Crate hayro

Source
Expand description

A crate for rendering PDF files.

This crate allows you to render PDF files into a pixmap. For more information on how to use this crate, see the example in the GitHub repository.

This crate is still very much in development, because of this, documentation is currently still very lacking.

§Cargo features

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

Structs§

InterpreterSettings
Settings that should be applied during the interpretation process.
Pdf
A PDF file.
Pixmap
A pixmap of premultiplied RGBA8 values backed by u8.
RenderSettings
Settings to apply during rendering.

Enums§

FontQuery
A query for a font.
StandardFont
The 14 standard fonts of PDF.

Functions§

render
Render the page with the given settings to a pixmap.

Type Aliases§

FontData
A container for the bytes of a PDF file.