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 Default, fit by page width
/FitB Fit by complete page bounding box
/FitH Fit by page height
/FitBH Fit by width of bounding box
/FitBV Fit by height of bounding box
/Fit Fit page, both horizontally and vertically.

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

# 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