PyPDF4 icon indicating copy to clipboard operation
PyPDF4 copied to clipboard

Add getAttachFiles() on PdfFileReader

Open alexis-via opened this issue 5 years ago • 1 comments

Add a method to get all attachments from a PDF file.

I'm not an expert of PDF and this is my very first contribution to PyPDF. I'm working on the Factur-X / ZUGFeRD invoicing standards (PDF invoice with an embedded XML file) and I'm the author of the factur-x python lib (https://github.com/akretion/factur-x) that depend on PyPDF4. I think it would be great to have a method to get all attachments directly in the PyPDF lib.

If you think this PR has some chances to be accepted, I'll add unit tests for the getAttachFiles method.

alexis-via avatar Jun 11 '19 15:06 alexis-via

Alexis, please accept my apology for the many months I've made you wait. Yes, please provide unit tests so we can commit this without further delay.

claird avatar Jun 21 '20 20:06 claird