react-file-viewer
react-file-viewer copied to clipboard
Displaying PDF's Attachments
Is there any way to display the attachments embedded in a PDF? I would like to list down all the documents attached in a PDF and then handle an onClick action to do something, like opening a new tab with the attachment.
Looking at the source code, it seems like PDFDriver holds pdf property in its state, and pdf has the method getAttachments which returns an Array with the attachments details: content (as Uinit8Array) and filename.