pvginkel / PdfiumViewer

PDF viewer based on Google's PDFium.
Apache License 2.0
972 stars 418 forks source link

fix handling of PDFs that are smaller than 72 in either width or height #121

Closed leszekm1 closed 7 years ago

leszekm1 commented 7 years ago

right now since the division is done prior to multiplication, any PDF who's width or height is smaller than 72 will have that dimension set to 0 and thus the conversion will throw an exception. This change fixes this issue.

pvginkel commented 7 years ago

Thanks for the pull request. I've merged it as is.