Skip to content

Zoom Levels

Nemo edited this page May 28, 2021 · 5 revisions

PDF allows you to set the Zoom level on the bookmark. See Page 582 of the PDF specification for the details.

Currently, pystitcher supports the following Fit options:

Option Notes
/FitV Fit the entire height of the page within the window
/FitB Fit by page bounding box within the window, using the lesser zoom factor
/FitH Fit the entire width of the page within the window
/FitBH Fit the entire width of the page's bounding box within the window
/FitBV Fit the entire height of the page's bounding box within the window
/Fit Fit page, both horizontally and vertically. This seems to use document dimensions instead of page dimensions on some readers.

You can set the fit on a per bookmark basis, or on a global basis by using the attributes at the top of the file. Example:

fit: /Fit
# Super Potato Book{: fit="/Fit"}

# Volume 1

[Part 1](2page.pdf){: fit="/FitV"}
[Part 2](2page.pdf)

# Volume 2

[Part 3](2page.pdf){: fit="/FitBV"}
[Part 4](2page.pdf)
Clone this wiki locally