pdf2htmlEX icon indicating copy to clipboard operation
pdf2htmlEX copied to clipboard

fit_width() and fit_height() don't work well when called many times

Open davidwtf opened this issue 11 years ago • 1 comments

fit_width() and fit_height() in the pdf2htmlEX.js can't work well when I call them again. The pages scaled in wrong ratio. You can try it.

These two functions called rescale() to finish the real scaling job. I think it should pass true to rescale() as the 2nd param. Because the 1st param (the ratio) is computed by the page's client width. In another word, this computed ratio is actually a relative ratio.

And It seems work well in my project that change rescale()'s 2nd param from "false" to "true".

davidwtf avatar Apr 15 '15 13:04 davidwtf

Fixed in incoming. Thanks~

coolwanglu avatar May 03 '15 04:05 coolwanglu