- Use
prop-types
to avoid React.PropTypes deprecation warnings.
- Pass raw PDFJS
file
object as second argument toonComplete
.
- Performance improvements (especially for phones with small screens)--the width of the canvas (using
clientWidth
) now determines the pixel density of the rendered PDF.
- Allow passing custom
className
andstyle
props toPage
. - Re-throw errors if no
onError
prop is passed toPDF
. - Allow custom headers with
headers
prop onPDF
(thanks to jacobkneal)
- Added
display: block
to each page's canvas element. Sometimes, acanvas
's container element would have a few pixels of extra height if it's display wasinline
.
- Fixed a bug where quickly changing
props.url
could render an incorrect document.
- Pass
className
andstyle
props onPDF
to container div.
- Add
onSizeReady
toPage
, allowing for a callback when each page's size has been determined.