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:
parent
f4de5a298b
commit
a41c7cff67
@ -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)`
|
||||
|
@ -125,7 +125,8 @@ void HTMLRenderer::process(PDFDoc *doc)
|
||||
|
||||
////////////////////////
|
||||
// Process Outline
|
||||
process_outline();
|
||||
if(param->process_outline)
|
||||
process_outline();
|
||||
|
||||
post_process();
|
||||
|
||||
|
@ -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;
|
||||
|
@ -75,6 +75,8 @@ void parse_options (int argc, char **argv)
|
||||
.add("dest-dir", ¶m.dest_dir, ".", "specify destination directory")
|
||||
.add("css-filename", ¶m.css_filename, "", "filename of the generated css file")
|
||||
.add("outline-filename", ¶m.outline_filename, "", "filename of the generated outline file")
|
||||
.add("process-nontext", ¶m.process_nontext, 1, "render graphics in addition to text")
|
||||
.add("process-outline", ¶m.process_outline, 1, "show outline in HTML")
|
||||
|
||||
// fonts
|
||||
.add("embed-base-font", ¶m.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", ¶m.clean_tmp, 1, "remove temporary files after conversion")
|
||||
.add("process-nontext", ¶m.process_nontext, 1, "render graphics in addition to text")
|
||||
.add("data-dir", ¶m.data_dir, PDF2HTMLEX_DATA_PATH, "specify data directory")
|
||||
.add("css-draw", ¶m.css_draw, 0, "[experimental and unsupported] CSS drawing")
|
||||
.add("debug", ¶m.debug, 0, "print debugging information")
|
||||
|
Loading…
Reference in New Issue
Block a user