Closed OJFord closed 2 years ago
v0.1.1: Document
now emits loadsuccess
with a detail of type PDFDocumentProxy
and loaderror
with a detail of type Error
.
The events currently don't have typing for inline event handlers so I'll keep this open until I can figure that out.
For example, as far as I can see it isn't possible to limit the supplied
pageNumber
to the actual total number of pages, or to displaypage {pageNumber} of {pageTotal}
- since there's no way of getting the total?PDFDocumentProxy
has anumPages
method that could provide this, along with other potentially useful metadata.