@@ -13,32 +13,33 @@ $ pip install pdfbookmarker
13
13
14
14
## Usage
15
15
16
- 1 ) Turn to your target PDF (e.g. ` MyBook.pdf ` ), record bookmark titles and page
17
- numbers of the PDF into a TEXT file (e.g. ` my_bookmarks.txt ` ) ** by hand**
18
- with the following format:
16
+ 1 . Turn to your target PDF (e.g. ` MyBook.pdf ` ), record bookmark titles and page
17
+ numbers of the PDF into a TEXT file (e.g. ` my_bookmarks.txt ` ) ** by hand**
18
+ with the following format:
19
19
20
20
```
21
21
<nested level>"<bookmark title>"|<page number>
22
22
```
23
23
24
- For samples, see [`sample_bookmarks.txt`](./sample_bookmarks.txt).
24
+ For samples, see [sample_bookmarks.txt](sample_bookmarks.txt). (Offsets are also
25
+ supported, see [here](https://github.com/RussellLuo/pdfbookmarker/pull/7#issuecomment-711136889))
25
26
26
- 2) Generate a copy of `MyBook.pdf` with additional bookmarks file specified by
27
- `my_bookmarks.txt`:
27
+ 2. Generate a copy of `MyBook.pdf` with additional bookmarks file specified by
28
+ `my_bookmarks.txt`:
28
29
29
30
```bash
30
31
$ pdfbm MyBook.pdf my_bookmarks.txt
31
32
```
32
33
33
- An auto-detected, expected or suggested filename for bookmarks is `MyBook.txt`,
34
- when the input filenamne e.g. is `MyBook.pdf`.
35
-
36
- The default filename of the output PDF is `MyBook-new.pdf`; You, of course, can
37
- specify the filename explicitly:
38
-
39
- ```bash
40
- $ pdfbm MyBook.pdf my_bookmarks.txt MyBook_with_bookmarks.pdf
41
- ```
34
+ An auto-detected, expected or suggested filename for bookmarks is `MyBook.txt`,
35
+ when the input filenamne e.g. is `MyBook.pdf`.
36
+
37
+ The default filename of the output PDF is `MyBook-new.pdf`; You, of course, can
38
+ specify the filename explicitly:
39
+
40
+ ```bash
41
+ $ pdfbm MyBook.pdf my_bookmarks.txt MyBook_with_bookmarks.pdf
42
+ ```
42
43
43
44
44
45
## License
0 commit comments