hayro_interpret/
lib.rs

1/*!
2A crate for interpreting PDF files.
3
4This crate provides an abstraction to interpret the content of a PDF file and render them
5into an abstract [`Device`], which clients can implement as needed. This allows you, for
6example, to render PDF files to bitmaps (which is what the `hayro` crate does), or other formats
7such as SVG.
8
9It should be noted that this crate is still very much in development. Therefore it currently
10lacks pretty much any documentation on how to use it. It's current API also only really makes it
11useful for rendering to PNG or SVG, though this will be improved upon in the future.
12
13## Cargo features
14This crate has one feature, `jpeg2000`. See the description of
15[`hayro-syntax`](https://docs.rs/hayro-syntax/latest/hayro_syntax/#cargo-features) for more information.
16*/
17
18#![forbid(unsafe_code)]
19#![deny(missing_docs)]
20
21mod cache;
22mod context;
23mod convert;
24mod device;
25mod interpret;
26mod soft_mask;
27mod types;
28mod x_object;
29
30pub mod color;
31pub mod font;
32pub mod pattern;
33pub mod shading;
34pub mod util;
35
36pub use context::*;
37pub use device::*;
38pub use hayro_syntax;
39pub use hayro_syntax::Pdf;
40pub use interpret::*;
41pub use soft_mask::*;
42pub use types::*;