mikecousins/react-pdf-js

Reading metadata

Closed this issue · 2 comments

Is there a way to access the pdf's metadata after loading the pdf file?
onDocumentComplete simply gets sent 'null' when the PDF loads.

To clarify I am loading the pdf from the <PDF> component in my render function. My goal is to extract the metadata after doing so.

This should be in v5.5.0 now.