messense / mupdf-rs

Rust binding to mupdf
GNU Affero General Public License v3.0
104 stars 23 forks source link

Clone traits implemented #89

Closed monoamine11231 closed 4 months ago

monoamine11231 commented 4 months ago

Clone trait was implemented for Page and Document structs in src/page.rs and src/document.rs using fz_keep_page and fz_keep_document methods which increment's MuPDF's internal reference count for the target structures.

Otherwise no major changes were made. All tests are passing.

Have a great day!