mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-10-05 19:41:40 +00:00
improve manpage; show data-dir in -v
This commit is contained in:
parent
3ad0564b25
commit
2e91696b33
@ -208,7 +208,7 @@ Whether to process non-text objects (as images)
|
|||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B --data-dir <dir> (Default: @CMAKE_INSTALL_PREFIX@/share/pdf2htmlEX)
|
.B --data-dir <dir> (Default: @CMAKE_INSTALL_PREFIX@/share/pdf2htmlEX)
|
||||||
Specify the folder holding the manifest and other files
|
Specify the folder holding the manifest and other files (see below for the manifest file)`
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B --css-draw <0|1> (Default: 0)
|
.B --css-draw <0|1> (Default: 0)
|
||||||
@ -231,6 +231,15 @@ Print copyright and version info
|
|||||||
Print usage information
|
Print usage information
|
||||||
|
|
||||||
|
|
||||||
|
.SH MANIFEST and DATA-DIR
|
||||||
|
When split-pages is 0, the manifest file describes how the final html page should be generated.
|
||||||
|
|
||||||
|
By default, pdf2htmlEX will use the manifest in the default data-dir (run `pdf2htmlEX -v` to check), which gives a simple demo of its syntax.
|
||||||
|
|
||||||
|
You can modify the default one, or you can create a new one and specify the correct data-dir in the command line.
|
||||||
|
|
||||||
|
When single-html is 1, all files referred by the manifest must be located in the data-dir.
|
||||||
|
|
||||||
.SH EXAMPLE
|
.SH EXAMPLE
|
||||||
.TP
|
.TP
|
||||||
.B pdf2htmlEX /path/to/file.pdf
|
.B pdf2htmlEX /path/to/file.pdf
|
||||||
|
@ -48,6 +48,7 @@ void show_version_and_exit(const char * dummy = nullptr)
|
|||||||
cerr << "Libraries: ";
|
cerr << "Libraries: ";
|
||||||
cerr << "poppler " << POPPLER_VERSION << ", ";
|
cerr << "poppler " << POPPLER_VERSION << ", ";
|
||||||
cerr << "libfontforge " << ffw_get_version() << endl;
|
cerr << "libfontforge " << ffw_get_version() << endl;
|
||||||
|
cerr << "Default data-dir: " << PDF2HTMLEX_DATA_PATH << endl;
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user