--viewer-magnification problem #40

Open
opened 2021-04-25 19:58:01 +00:00 by josch · 1 comment
Owner

By Jean-Baptiste Pressac on 2018-02-06T14:14:33.008Z

Hello,
On Debian with a Python Conda env with img2pdf 0.2.4 + Python 3.6.4 + pdfrw 0.4, when I set --viewer-magnification, the PDF viewers (Gnome Evince on Debian or PDF Acrobat on Windows) do not take the default zoom value into account. For instance, for a 50% zoom by default, I tried:

img2pdf -o test.pdf --viewer-magnification 50 *.jpg
img2pdf -o test.pdf --viewer-magnification 0.5 *.jpg
img2pdf -o test.pdf --viewer-magnification 50.0 *.jpg

Did I something wrong ?
Thanks,


By josch on 2018-02-08T07:56:37.026Z


I can confirm this observation.

The PDF code that img2pdf generates as a result of specifying the --viewer-magnification option with a float parameter is what libre office does. You can try to do the same with libre office, export as pdf and under "Initial View" select your desired zoom factor. It also doesn't seem to have any effect.

*By Jean-Baptiste Pressac on 2018-02-06T14:14:33.008Z* Hello, On Debian with a Python Conda env with img2pdf 0.2.4 + Python 3.6.4 + pdfrw 0.4, when I set --viewer-magnification, the PDF viewers (Gnome Evince on Debian or PDF Acrobat on Windows) do not take the default zoom value into account. For instance, for a 50% zoom by default, I tried: ``` img2pdf -o test.pdf --viewer-magnification 50 *.jpg img2pdf -o test.pdf --viewer-magnification 0.5 *.jpg img2pdf -o test.pdf --viewer-magnification 50.0 *.jpg ``` Did I something wrong ? Thanks, --- *By josch on 2018-02-08T07:56:37.026Z* --- I can confirm this observation. The PDF code that img2pdf generates as a result of specifying the `--viewer-magnification` option with a float parameter is what libre office does. You can try to do the same with libre office, export as pdf and under "Initial View" select your desired zoom factor. It also doesn't seem to have any effect.
Author
Owner

#165 asks about the same thing

#165 asks about the same thing
josch added the
duplicate
help wanted
labels 2023-06-11 06:34:15 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: josch/img2pdf#40
No description provided.