1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! A rasteriser for the `pdf2` crate: paths, clips, transforms, dashes and the
//! beginnings of a content-stream interpreter.
//!
//! The walker reuses `pdf2`'s tokenizer and document model — there is no second
//! PDF parser here. What it can draw today:
//!
//! - path construction (`m`, `l`, `c`, `v`, `y`, `h`, `re`) in user space, with
//! the CTM applied at flattening time;
//! - fills with the non-zero (`f`, `F`, `B`) and even-odd (`f*`, `B*`) rules;
//! - strokes with butt, round and square caps, round joins, and dash patterns
//! (`d`) with a phase;
//! - clipping (`W`, `W*`) as a per-pixel mask that nested `q`/`Q` restores;
//! - colour operators `g`/`G`, `rg`/`RG` and the naive `k`/`K` conversion.
//!
//! Not yet drawn, and reported per page in [`Report::unsupported`] instead of
//! failing: text and images. Rendering is deliberately without anti-aliasing
//! for now: coverage is decided at pixel centres, which keeps the golden images
//! exact and the scanline code small.
pub use ;
pub use ;
pub use ;
pub use Image;
pub use ;
pub use ;
pub use encode_png;
pub use ;
pub use ;