pub trait PageExt {
// Required method
fn initial_transform(&self, invert_y: bool) -> Affine;
}Expand description
Extension methods for PDF pages.
Required Methods§
Sourcefn initial_transform(&self, invert_y: bool) -> Affine
fn initial_transform(&self, invert_y: bool) -> Affine
Return the initial transform that should be applied when rendering. This accounts for a number of factors, such as the mismatch between PDF’s y-up and most renderers’ y-down coordinate system, the rotation of the page and the offset of the crop box.