mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
Merge pull request #609 from Teddytrombone/master
[BUGFIX] Add option to override poppler data dir (resolves #572)
This commit is contained in:
commit
2041c5d66e
@ -75,6 +75,7 @@ struct Param
|
||||
// misc.
|
||||
int clean_tmp;
|
||||
std::string data_dir;
|
||||
std::string poppler_data_dir;
|
||||
std::string tmp_dir;
|
||||
int debug;
|
||||
int proof;
|
||||
|
@ -198,6 +198,7 @@ void parse_options (int argc, char **argv)
|
||||
.add("clean-tmp", ¶m.clean_tmp, 1, "remove temporary files after conversion")
|
||||
.add("tmp-dir", ¶m.tmp_dir, param.tmp_dir, "specify the location of temporary directory.")
|
||||
.add("data-dir", ¶m.data_dir, param.data_dir, "specify data directory")
|
||||
.add("poppler-data-dir", ¶m.poppler_data_dir, param.poppler_data_dir, "specify poppler data directory")
|
||||
.add("debug", ¶m.debug, 0, "print debugging information")
|
||||
.add("proof", ¶m.proof, 0, "texts are drawn on both text layer and background for proof.")
|
||||
|
||||
@ -387,7 +388,7 @@ int main(int argc, char **argv)
|
||||
|
||||
bool finished = false;
|
||||
// read config file
|
||||
globalParams = new GlobalParams();
|
||||
globalParams = new GlobalParams(!param.poppler_data_dir.empty() ? param.poppler_data_dir.c_str() : NULL);
|
||||
// open PDF file
|
||||
PDFDoc * doc = nullptr;
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user