table of contents
PDF2DJVU(1) | pdf2djvu manual | PDF2DJVU(1) |
NAME¶
pdf2djvu - creates DjVu files from PDF files
SYNOPSIS¶
pdf2djvu [{-o | --output} output-djvu-file] [option...] pdf-file...
pdf2djvu {-i | --indirect} index-djvu-file [option...] pdf-file...
pdf2djvu {--version | --help | -h}
DESCRIPTION¶
This program creates a DjVu file from one or more Portable Document Format files.
OPTIONS¶
pdf2djvu accepts the following options:
Document type, file names¶
-o, --output=output-djvu-file
-i, --indirect=index-djvu-file
--page-id-template=template
The default template is “p{page:04*}.djvu”.
For portability reasons, page identifiers:
--page-id-prefix=prefix
--page-title-template=template
The default template is “{label}”.
--no-page-titles
Resolution, page size¶
-d, --dpi=resolution
--media-box
--page-size=widthxheight
--guess-dpi
Image quality¶
--bg-slices=n+...+n, --bg-slices=n,...,n
--bg-subsample=n
--fg-colors=default
--fg-colors=web
--fg-colors=n
--fg-colors=black
--monochrome
--loss-level=n
--lossy
--anti-alias
Extraction¶
--no-metadata
By default:
Note
If multiple input documents are specified, only metadata of the first one is taken into account.
--verbatim-metadata
--no-outline
--hyperlinks=border-avis
By default, a hyperlink border is visible only when the mouse is over the hyperlink.
--hyperlinks=#RRGGBB
--no-hyperlinks, --hyperlinks=none
--no-text
--words
--lines
--crop-text
--no-nfkc
The default is to apply NFKC normalization on all characters.
--filter-text=command-line
This option implies --no-nfkc.
-p, --pages=page-range
The default is to convert all pages.
Performance¶
-j, --jobs=n
-j0, --jobs=0
Verbosity, help¶
-v, --verbose
-q, --quiet
--version
-h, --help
ENVIRONMENT¶
The following environment variables affects pdf2djvu on Unix systems:
OMP_*
TMPDIR
TEMPLATE LANGUAGE¶
Template syntax¶
The template language is roughly modeled on the Python string formatting syntax[5].
A template is a piece of text which contains fields, surrounded by curly braces {}. Fields are replaced with appropriately formatted values when the template is evaluated. Moreover, {{ is replaced with a single { and }} is replaced with a single }.
Field syntax¶
Each field consists of a variable name, optionally followed by a shift, optionally followed by a format specification.
The shift is a signed (i.e. starting with a + or - character) integer.
The format specification consists of a colon, followed by a width specification.
The width specification is a decimal integer defining the minimum field width. If not specified, then the field width will be determined by the content. Preceding the width specification with a zero (0) character enables zero-padding.
The width specification is optionally followed by an asterisk (*) character, which increases the minimum field width to the width of the longest possible content of the variable.
Available variables¶
dpage
page, spage
label
This variable is available only for page titles.
IMPLEMENTATION DETAILS¶
Layer separation algorithm¶
Unless the --monochrome option is on, pdf2djvu uses the following naive layer separation algorithm:
BUG REPORTS¶
If you find a bug in pdf2djvu, please report it at the issue tracker[6] or to the mailing list[7].
SEE ALSO¶
NOTES¶
- 1.
- RFC 3999
- 2.
- NFKC
- 3.
- Alphabetic Presentation Forms block
- 4.
- OpenMP API specification
- 5.
- Python string formatting syntax
- 6.
- the issue tracker
- 7.
- the mailing list
2022-08-09 | pdf2djvu 0.9.19 |