@@ -25,6 +25,12 @@ The following subcommands are accepted.
2525- You can also specify that the PDF should be right-open.
2626- The output is sorted by path in the ZIP.
2727
28+ ### ` setview `
29+
30+ - Sets the initial page view properties of a PDF.
31+ - Allows you to specify the page layout, zoom level, and reading direction.
32+ - Useful for configuring how the PDF should be displayed when opened in a reader.
33+
2834## How to start
2935
30361 . Install Java (11 or later) and ImageMagick (6 or later).
@@ -100,9 +106,18 @@ Option|Description
100106-|-
101107-R, --right-to-left|Set direction to right-to-left.
102108
109+ ### Options for ` setview ` subcommand
110+
111+ Option|Description
112+ -|-
113+ --clear|Remove OpenAction, PageLayout, ViewerPreferences from catalog before editing.
114+ -F, --fit|Zoom to show entire page.
115+ -L, --page-layout=_ layout_ |Set page layout. _ layout_ must be one of SinglePage, OneColumn, TwoColumnLeft, TwoColumnRight, TwoPageLeft, TwoPageRight.
116+ -R, --right-to-left|Set direction to right-to-left.
117+
103118## How to build
104119
105- Install Git, Java (11 or later), Maven, and ImageMagick (6 or later), then clone & build.
120+ Install Git, Java (25 or later), Maven, and ImageMagick (6 or later), then clone & build.
106121
107122 git clone https://github.com/alpha3166/optimpdf
108123 cd optimpdf
0 commit comments