pub trait TransformConfiguration {
Show 17 methods
fn matrix(&self) -> Result<PdfMatrix, PdfiumError>;
fn get_translation(&self) -> (PdfPoints, PdfPoints) { ... }
fn get_horizontal_translation(&self) -> PdfPoints { ... }
fn get_vertical_translation(&self) -> PdfPoints { ... }
fn get_scale(&self) -> (PdfMatrixValue, PdfMatrixValue) { ... }
fn get_horizontal_scale(&self) -> PdfMatrixValue { ... }
fn get_vertical_scale(&self) -> PdfMatrixValue { ... }
fn get_rotation_counter_clockwise_degrees(&self) -> PdfMatrixValue { ... }
fn get_rotation_clockwise_degrees(&self) -> PdfMatrixValue { ... }
fn get_rotation_counter_clockwise_radians(&self) -> PdfMatrixValue { ... }
fn get_rotation_clockwise_radians(&self) -> PdfMatrixValue { ... }
fn get_skew_degrees(&self) -> (PdfMatrixValue, PdfMatrixValue) { ... }
fn get_x_axis_skew_degrees(&self) -> PdfMatrixValue { ... }
fn get_y_axis_skew_degrees(&self) -> PdfMatrixValue { ... }
fn get_skew_radians(&self) -> (PdfMatrixValue, PdfMatrixValue) { ... }
fn get_x_axis_skew_radians(&self) -> PdfMatrixValue { ... }
fn get_y_axis_skew_radians(&self) -> PdfMatrixValue { ... }
}Expand description
Common transformation getter operations that can be applied to a variety of PDF objects, including pages, individual page objects, and groups of page objects.
Required Methods§
sourcefn matrix(&self) -> Result<PdfMatrix, PdfiumError>
fn matrix(&self) -> Result<PdfMatrix, PdfiumError>
Returns the transformation matrix currently applied to this transformable object.
Provided Methods§
sourcefn get_translation(&self) -> (PdfPoints, PdfPoints)
fn get_translation(&self) -> (PdfPoints, PdfPoints)
Returns the current horizontal and vertical translation of the origin of this object.
sourcefn get_horizontal_translation(&self) -> PdfPoints
fn get_horizontal_translation(&self) -> PdfPoints
Returns the current horizontal translation of the origin of this object.
sourcefn get_vertical_translation(&self) -> PdfPoints
fn get_vertical_translation(&self) -> PdfPoints
Returns the current vertical translation of the origin of this object.
sourcefn get_scale(&self) -> (PdfMatrixValue, PdfMatrixValue)
fn get_scale(&self) -> (PdfMatrixValue, PdfMatrixValue)
Returns the current horizontal and vertical scale factors applied to this object.
sourcefn get_horizontal_scale(&self) -> PdfMatrixValue
fn get_horizontal_scale(&self) -> PdfMatrixValue
Returns the current horizontal scale factor applied to this object.
sourcefn get_vertical_scale(&self) -> PdfMatrixValue
fn get_vertical_scale(&self) -> PdfMatrixValue
Returns the current vertical scale factor applied to this object.
sourcefn get_rotation_counter_clockwise_degrees(&self) -> PdfMatrixValue
fn get_rotation_counter_clockwise_degrees(&self) -> PdfMatrixValue
Returns the counter-clockwise rotation applied to this object, in degrees.
If the object is both rotated and skewed, the return value of this function will reflect the combined operation.
sourcefn get_rotation_clockwise_degrees(&self) -> PdfMatrixValue
fn get_rotation_clockwise_degrees(&self) -> PdfMatrixValue
Returns the clockwise rotation applied to this object, in degrees.
If the object is both rotated and skewed, the return value of this function will reflect the combined operation.
sourcefn get_rotation_counter_clockwise_radians(&self) -> PdfMatrixValue
fn get_rotation_counter_clockwise_radians(&self) -> PdfMatrixValue
Returns the counter-clockwise rotation applied to this object, in radians.
If the object is both rotated and skewed, the return value of this function will reflect the combined operation.
sourcefn get_rotation_clockwise_radians(&self) -> PdfMatrixValue
fn get_rotation_clockwise_radians(&self) -> PdfMatrixValue
Returns the clockwise rotation applied to this object, in radians.
If the object is both rotated and skewed, the return value of this function will reflect the combined operation.
sourcefn get_skew_degrees(&self) -> (PdfMatrixValue, PdfMatrixValue)
fn get_skew_degrees(&self) -> (PdfMatrixValue, PdfMatrixValue)
Returns the current x axis and y axis skew angles applied to this object, in degrees.
If the object is both rotated and skewed, the return value of this function will reflect the combined operation.
sourcefn get_x_axis_skew_degrees(&self) -> PdfMatrixValue
fn get_x_axis_skew_degrees(&self) -> PdfMatrixValue
Returns the current x axis skew angle applied to this object, in degrees.
If the object is both rotated and skewed, the return value of this function will reflect the combined operation.
sourcefn get_y_axis_skew_degrees(&self) -> PdfMatrixValue
fn get_y_axis_skew_degrees(&self) -> PdfMatrixValue
Returns the current y axis skew applied to this object, in degrees.
If the object is both rotated and skewed, the return value of this function will reflect the combined operation.
sourcefn get_skew_radians(&self) -> (PdfMatrixValue, PdfMatrixValue)
fn get_skew_radians(&self) -> (PdfMatrixValue, PdfMatrixValue)
Returns the current x axis and y axis skew angles applied to this object, in radians.
If the object is both rotated and skewed, the return value of this function will reflect the combined operation.
sourcefn get_x_axis_skew_radians(&self) -> PdfMatrixValue
fn get_x_axis_skew_radians(&self) -> PdfMatrixValue
Returns the current x axis skew applied to this object, in radians.
If the object is both rotated and skewed, the return value of this function will reflect the combined operation.
sourcefn get_y_axis_skew_radians(&self) -> PdfMatrixValue
fn get_y_axis_skew_radians(&self) -> PdfMatrixValue
Returns the current y axis skew applied to this object, in radians.
If the object is both rotated and skewed, the return value of this function will reflect the combined operation.