Specify startup fit to page rather than fit to width #17

Closed
opened 2021-04-25 19:57:37 +00:00 by josch · 0 comments
Owner

By josch on 2015-03-15T09:41:52.449Z

Created by: bmcbride

It would be great if we could set the default startup view to fit to page rather than fit to width. Working with photos, the fit to page view looks much better than being zoomed way in when you open the file. Thanks!

Imported comments:

By josch on 2013-09-10 05:00:36 UTC

Hi,

Quoting Bryan McBride (2013-09-10 05:38:25)

It would be great if we could set the default startup view to fit to page
rather than fit to width.

What do you mean by "default startup view"? There is no "view" in img2pdf. It
just embeds images into pdf.

cheers, josch

By bmcbride on 2013-09-10 05:14:38 UTC

Right but most applications that write PDF's allow you to set some default parameters, such as the initial zoom. This determines how the PDF looks when it opens up- whether it is zoomed in to fit the width of the content or out to fit the whole page.

By josch on 2013-09-10 05:19:56 UTC

Hi,

Quoting Bryan McBride (2013-09-10 07:14:38)

Right but most applications that write PDF's allow you to set some default
parameters, such as the initial zoom. This determines how the PDF looks when it
opens up- whether it is zoomed in to fit the width of the content or out to fit
the whole page.

Ah, now I understand your request.

Though I did never encounter a PDF creating application which allowed me to do
so. Please either

a) tell me one application that allows to set the initial width or
b) point me to the relevant section in the PDF standard on how to specify
this property in a PDF document.

Frankly, I also never encountered a PDF which made use of such default
parameters or, alternatively, all PDF viewers I usually use do not interpret
them at all. Do you know a viewer besides the acrobat one (which surely can do
this) which has this feature?

cheers, josch

By bmcbride on 2013-09-10 14:18:09 UTC

Hi Josch,

a) I know Adobe Reader, Nitro Reader (http://www.nitroreader.com/), and PDF Exchange Viewer (http://www.tracker-software.com/product/pdf-xchange-viewer) all support this functionality.

b) This is the documentation for Adobe Acrobat: http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7c6c.w.html

Thanks!

By josch on 2013-09-10 17:22:50 UTC

Hi,

Quoting Bryan McBride (2013-09-10 16:18:09)

a) I know Adobe Reader, Nitro Reader (http://www.nitroreader.com/), and PDF
Exchange Viewer (http://www.tracker-software.com/product/pdf-xchange-viewer)
all support this functionality.

The only one running on linux is the acrobat reader with which I was able to
check that the attribute you need in your pdf is

/OpenAction[1 0 R /Fit]

In your /Type/Catalog object.

b) This is the documentation for Adobe Acrobat: http://help.adobe.com/en_US/
acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7c6c.w.html

This didnt help me at all as I was looking for the relevant entry in the PDF
specification. I never used any non-free pdf creator.

I learned about /OpenAction through the pdf export functionality of libre
office. Though I doubt that this functionality fits into img2pdf. Currently,
img2pdf does not set any initial view at all, so can you not instruct your pdf
viewer to choose a different default initial view for documents that do not set
it?

This functionality seems better fit for a small program which is able to fiddle
with pdf metadata instead.

cheers, josch

By bmcbride on 2013-09-10 20:18:18 UTC

Agreed. Thanks for looking into it!

*By josch on 2015-03-15T09:41:52.449Z* *Created by: bmcbride* It would be great if we could set the default startup view to fit to page rather than fit to width. Working with photos, the fit to page view looks much better than being zoomed way in when you open the file. Thanks! **Imported comments:** *By josch on 2013-09-10 05:00:36 UTC* Hi, Quoting Bryan McBride (2013-09-10 05:38:25) > It would be great if we could set the default startup view to fit to page > rather than fit to width. What do you mean by "default startup view"? There is no "view" in img2pdf. It just embeds images into pdf. cheers, josch *By bmcbride on 2013-09-10 05:14:38 UTC* Right but most applications that write PDF's allow you to set some default parameters, such as the initial zoom. This determines how the PDF looks when it opens up- whether it is zoomed in to fit the width of the content or out to fit the whole page. *By josch on 2013-09-10 05:19:56 UTC* Hi, Quoting Bryan McBride (2013-09-10 07:14:38) > Right but most applications that write PDF's allow you to set some default > parameters, such as the initial zoom. This determines how the PDF looks when it > opens up- whether it is zoomed in to fit the width of the content or out to fit > the whole page. Ah, now I understand your request. Though I did never encounter a PDF creating application which allowed me to do so. Please either a) tell me one application that allows to set the initial width or b) point me to the relevant section in the PDF standard on how to specify this property in a PDF document. Frankly, I also never encountered a PDF which made use of such default parameters or, alternatively, all PDF viewers I usually use do not interpret them at all. Do you know a viewer besides the acrobat one (which surely can do this) which has this feature? cheers, josch *By bmcbride on 2013-09-10 14:18:09 UTC* Hi Josch, a) I know Adobe Reader, Nitro Reader (http://www.nitroreader.com/), and PDF Exchange Viewer (http://www.tracker-software.com/product/pdf-xchange-viewer) all support this functionality. b) This is the documentation for Adobe Acrobat: http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7c6c.w.html Thanks! *By josch on 2013-09-10 17:22:50 UTC* Hi, Quoting Bryan McBride (2013-09-10 16:18:09) > a) I know Adobe Reader, Nitro Reader (http://www.nitroreader.com/), and PDF > Exchange Viewer (http://www.tracker-software.com/product/pdf-xchange-viewer) > all support this functionality. The only one running on linux is the acrobat reader with which I was able to check that the attribute you need in your pdf is /OpenAction[1 0 R /Fit] In your /Type/Catalog object. > b) This is the documentation for Adobe Acrobat: http://help.adobe.com/en_US/ > acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7c6c.w.html This didnt help me at all as I was looking for the relevant entry in the PDF specification. I never used any non-free pdf creator. I learned about /OpenAction through the pdf export functionality of libre office. Though I doubt that this functionality fits into img2pdf. Currently, img2pdf does not set any initial view at all, so can you not instruct your pdf viewer to choose a different default initial view for documents that do not set it? This functionality seems better fit for a small program which is able to fiddle with pdf metadata instead. cheers, josch *By bmcbride on 2013-09-10 20:18:18 UTC* Agreed. Thanks for looking into it!
josch closed this issue 2021-04-25 19:57:37 +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#17
No description provided.