ajrcarey / pdfium-render

A high-level idiomatic Rust wrapper around Pdfium, the C++ PDF library used by the Google Chromium project.
https://crates.io/crates/pdfium-render
Other
364 stars 59 forks source link

Add convenience functions for creating attached Bézier curves. #42

Closed ajrcarey closed 2 years ago

ajrcarey commented 2 years ago

PdfPageObjects already contains convenience functions for creating lines, rectangles, circles, and ellipses. Add an equivalent convenience function for creating a Beźier curve.

Likewise, PdfPagePathObject already contains convenience functions for creating lines, rectangles, circles, and ellipses. Add an equivalent convenience function for creating a Bézier curve.

ajrcarey commented 2 years ago

Added PdfPageObjects::create_path_object_bezier(), PdfPagePathObject::new_bezier(), and crate-private PdfPagePathObject::new_bezier_from_bindings() functions. Updated documentation. Published as crate version 0.7.16.