--viewer-magnification problem #40

Open
opened 3 years ago by josch · 1 comments
josch commented 3 years ago
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.
Poster
Owner

#165 asks about the same thing

#165 asks about the same thing
josch added the
duplicate
help wanted
labels 12 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
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
Loading…
There is no content yet.