diff --git a/pdf2htmlEX.1.in b/pdf2htmlEX.1.in
index 71b8033..715c13b 100644
--- a/pdf2htmlEX.1.in
+++ b/pdf2htmlEX.1.in
@@ -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
(Default: @CMAKE_INSTALL_PREFIX@/share/pdf2htmlEX)
Specify the folder holding the manifest and other files (see below for the manifest file)`
diff --git a/src/HTMLRenderer/general.cc b/src/HTMLRenderer/general.cc
index bd80031..fcc03ba 100644
--- a/src/HTMLRenderer/general.cc
+++ b/src/HTMLRenderer/general.cc
@@ -125,7 +125,8 @@ void HTMLRenderer::process(PDFDoc *doc)
////////////////////////
// Process Outline
- process_outline();
+ if(param->process_outline)
+ process_outline();
post_process();
diff --git a/src/Param.h b/src/Param.h
index e8d6b90..2155f8a 100644
--- a/src/Param.h
+++ b/src/Param.h
@@ -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;
diff --git a/src/pdf2htmlEX.cc b/src/pdf2htmlEX.cc
index bee540d..f44b043 100644
--- a/src/pdf2htmlEX.cc
+++ b/src/pdf2htmlEX.cc
@@ -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")