Skip to content

Commit 6ebcb59

Browse files
committed
docs: Update README.md
1 parent dd6a1a5 commit 6ebcb59

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

3036
1. 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

README_ja.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
- PDFが右開きになるよう指定することもできます。
2626
- ZIP内のパスでソートした順序で出力します。
2727

28+
### `setview`
29+
30+
- PDFの初期表示設定を変更します。
31+
- ページレイアウト、ズームレベル、読み込み方向を指定できます。
32+
- PDFリーダーで開いたときの表示方法を設定するのに便利です。
33+
2834
## 起動方法
2935

3036
1. Java (11以降) とImageMagick (6以降) をインストールします。
@@ -100,6 +106,15 @@
100106
-|-
101107
-R, --right-to-left|右開きにする。
102108

109+
### `setview`サブコマンドのオプション
110+
111+
オプション|説明
112+
-|-
113+
--clear|編集前にカタログからOpenAction、PageLayout、ViewerPreferencesを削除する。
114+
-F, --fit|ページ全体を表示するよう拡大/縮小する。
115+
-L, --page-layout=_layout_|ページレイアウトを設定する。_layout_は SinglePage、OneColumn、TwoColumnLeft、TwoColumnRight、TwoPageLeft、TwoPageRight のいずれかである必要があります。
116+
-R, --right-to-left|右開きにする。
117+
103118
## ビルド方法
104119

105120
Git、Java (11以降)、Maven、ImageMagick (6以降) をインストールし、クローン&ビルドします。

0 commit comments

Comments
 (0)