From 2e91696b3312dcfd23459d0ad1df1f4f198ffe53 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Tue, 29 Jan 2013 22:52:32 +0800 Subject: [PATCH] improve manpage; show data-dir in -v --- pdf2htmlEX.1.in | 11 ++++++++++- src/pdf2htmlEX.cc | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pdf2htmlEX.1.in b/pdf2htmlEX.1.in index 630ddb6..fd3745c 100644 --- a/pdf2htmlEX.1.in +++ b/pdf2htmlEX.1.in @@ -208,7 +208,7 @@ Whether to process non-text objects (as images) .TP .B --data-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 .B --css-draw <0|1> (Default: 0) @@ -231,6 +231,15 @@ Print copyright and version info 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 .TP .B pdf2htmlEX /path/to/file.pdf diff --git a/src/pdf2htmlEX.cc b/src/pdf2htmlEX.cc index ba3eaec..1bfe6cb 100644 --- a/src/pdf2htmlEX.cc +++ b/src/pdf2htmlEX.cc @@ -48,6 +48,7 @@ void show_version_and_exit(const char * dummy = nullptr) cerr << "Libraries: "; cerr << "poppler " << POPPLER_VERSION << ", "; cerr << "libfontforge " << ffw_get_version() << endl; + cerr << "Default data-dir: " << PDF2HTMLEX_DATA_PATH << endl; exit(EXIT_SUCCESS); }