OpenDocument.droid icon indicating copy to clipboard operation
OpenDocument.droid copied to clipboard

Can't Zoom Out of Some PDFs

Open TechD123 opened this issue 1 year ago • 3 comments

Since I started using the app with version 3.19, some PDFs are displayed with a zoom factor above 100% when opening them, meaning the entire page can't be seen. It's impossible to make the entire page fit, even though the document appears to be A4 sized. In my experience, this has affected 1/10 PDFs.

The problem is still present in 3.26.

Here's a link to a PDF for which this is the case.

TechD123 avatar May 30 '24 18:05 TechD123

@TomTasche @ViliusSutkus89 I suppose this is something that changed with the pdf2htmlEX update?

andiwand avatar May 31 '24 09:05 andiwand

3.19 was built against pdf2htmlEX-Android 0.18.16, which was built against pdf2htmlEX-v0.18.7-poppler-0.81.0 3.24 is built against pdf2htmlEX-Android 0.18.23, which is built against pdf2htmlEX-0.18.8.rc1 + rc2 patches

So yes, there were a lot of changes both in our packaging and in the upstream pdf2htmlEX.

I got some luck getting the document to fit properly by using setFitWidth, which calls fit-width, but I'm not entirely sure what's the proper default value for it

ViliusSutkus89 avatar Jun 01 '24 13:06 ViliusSutkus89

We could add a settings menu to expose those options as configurables

ViliusSutkus89 avatar Jun 21 '24 14:06 ViliusSutkus89

Reproducible with 3.32-pro

TechD123 avatar Nov 03 '24 11:11 TechD123

I got some luck getting the document to fit properly by using setFitWidth, which calls fit-width, but I'm not entirely sure what's the proper default value for it

Could you use the screen width? Maybe with a static offset of 50 pixel or so, to make sure we don't overlap with scrollbar, etc.

TomTasche avatar Nov 04 '24 21:11 TomTasche