Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PdfAttachments and PdfSignatures collections to PdfDocument. #46

Closed
ajrcarey opened this issue Sep 24, 2022 · 2 comments
Closed

Add PdfAttachments and PdfSignatures collections to PdfDocument. #46

ajrcarey opened this issue Sep 24, 2022 · 2 comments
Assignees

Comments

@ajrcarey
Copy link
Owner

Provide accessor collections for document attachments and digital signatures to PdfDocument.

@ajrcarey
Copy link
Owner Author

FPDF_* functions relating to signatures were already available in PdfiumLibraryBindings. Added bindings for FPDF_* functions relating to embedded attachments. Added PdfAttachments, PdfAttachment, PdfSignatures, and PdfSignature objects to high level interface. Added PdfDocument::attachments(), PdfDocument::attachments_mut(), and PdfDocument::signatures() functions to PdfDocument. For the moment, all collections are read-only; Pdfium does support deleting existing attachments and creating new attachments, so PdfAttachment can gain mutation methods in a future release.

@ajrcarey
Copy link
Owner Author

ajrcarey commented Sep 24, 2022

Reinstated PdfiumError::WebSysWindowObjectNotAvailable variant removed in 0.7.16, since it is in fact needed by PdfFont when compiling to WASM. Updated documentation. Added new examples examples/attachments.rs and examples/signatures.rs. Published to crates.io as 0.7.19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant