1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

new option --process-outline

This commit is contained in:
Lu Wang 2013-01-31 02:18:18 +08:00
parent f4de5a298b
commit a41c7cff67
4 changed files with 16 additions and 9 deletions

View File

@ -51,7 +51,7 @@ Use CropBox instead of MediaBox for output.
Specify the horizontal and vertical DPI for images
.SS Output Files
.SS Output
.TP
.B --single-html <0|1> (Default: 1)
@ -87,6 +87,14 @@ Specify the filename of the generated outline file, if not embedded.
If it's empty, the file name will be determined automatically.
.TP
.B --process-nontext <0|1> (Default: 1)
Whether to process non-text objects (as images)
.TP
.B --process-outline <0|1> (Default: 0)
Whether to show outline in the generated HTML
.SS Fonts
.TP
@ -189,10 +197,6 @@ Override document DRM settings
.B --clean-tmp <0|1> (Default: 1)
If switched off, intermediate files won't be cleaned in the end.
.TP
.B --process-nontext <0|1> (Default: 1)
Whether to process non-text objects (as images)
.TP
.B --data-dir <dir> (Default: @CMAKE_INSTALL_PREFIX@/share/pdf2htmlEX)
Specify the folder holding the manifest and other files (see below for the manifest file)`

View File

@ -125,7 +125,8 @@ void HTMLRenderer::process(PDFDoc *doc)
////////////////////////
// Process Outline
process_outline();
if(param->process_outline)
process_outline();
post_process();

View File

@ -24,12 +24,14 @@ struct Param
int use_cropbox;
double h_dpi, v_dpi;
// output files
// output
int single_html;
int split_pages;
std::string dest_dir;
std::string css_filename;
std::string outline_filename;
int process_nontext;
int process_outline;
// fonts
int embed_base_font;
@ -55,7 +57,6 @@ struct Param
// misc.
int clean_tmp;
int process_nontext;
std::string data_dir;
int css_draw;
int debug;

View File

@ -75,6 +75,8 @@ void parse_options (int argc, char **argv)
.add("dest-dir", &param.dest_dir, ".", "specify destination directory")
.add("css-filename", &param.css_filename, "", "filename of the generated css file")
.add("outline-filename", &param.outline_filename, "", "filename of the generated outline file")
.add("process-nontext", &param.process_nontext, 1, "render graphics in addition to text")
.add("process-outline", &param.process_outline, 1, "show outline in HTML")
// fonts
.add("embed-base-font", &param.embed_base_font, 0, "embed local match for standard 14 fonts")
@ -102,7 +104,6 @@ void parse_options (int argc, char **argv)
// misc.
.add("clean-tmp", &param.clean_tmp, 1, "remove temporary files after conversion")
.add("process-nontext", &param.process_nontext, 1, "render graphics in addition to text")
.add("data-dir", &param.data_dir, PDF2HTMLEX_DATA_PATH, "specify data directory")
.add("css-draw", &param.css_draw, 0, "[experimental and unsupported] CSS drawing")
.add("debug", &param.debug, 0, "print debugging information")