1pdfoutline(1) General Commands Manual pdfoutline(1)
2
3
4
6 pdfoutline - add outlines (aka bookmarks) to PDF files
7
8
10 pdfoutline input.pdf outlines.txt output.pdf
11
13 pdfoutline reads input file given as first argument, adds outlines from
14 text file given as second argument, and saves result to file with name
15 given as third argument.
16
17 File with outlines information should consist of lines in the following
18 format:
19 <level> <page> Outline text
20
21 <level> and <page> should be integers. Each field should be separated
22 by exactly one space symbol. All values for <level> should be greater
23 or equal than that of the first line. Page numeration starts with 1.
24
25 Outlines file can contain comments that start with # in first column.
26 Comments and empty lines are ignored. The text is expected to be in
27 UTF-8 encoding.
28
30 pdfoutline accepts no options.
31
33 Here is example of outlines data file:
34 0 1 Document title
35 1 1 Chapter 1
36 2 1 Chapter 1.1
37 2 2 Chapter 1.2
38 1 3 Chapter 2
39
40 Using this file will result in outlines like the following:
41 Document title
42 +-Chapter 1
43 | +-Chapter 1.1
44 | +-Chapter 1.2
45 +-Chapter 2
46
48 pdfoutline author is Eugeniy Meshcheryakov <eugen@debian.org>
49 pdfoutline is part of fntsample and can be downoaded from
50 <https://github.com/eugmes/fntsample>.
51
52
53
54 2023-07-19 pdfoutline(1)