diff --git a/pdf2htmlEX.1.in b/pdf2htmlEX.1.in
index 0f49153..e1b0b78 100644
--- a/pdf2htmlEX.1.in
+++ b/pdf2htmlEX.1.in
@@ -82,6 +82,13 @@ This switch is useful if you want pages to be loaded separately & dynamically --
Also see --page-filename.
+.TP
+.B --tmp-file-size-limit (Default: -1)
+This limits the total size of the temporary files which will also limit the total size of the output file.
+This is an estimate and it will stop after a page, once the total temporary files size is greater than this number.
+
+-1 means no limit and is the default.
+
.TP
.B --dest-dir (Default: .)
Specify destination folder.
@@ -262,6 +269,10 @@ If switched off, intermediate files won't be cleaned in the end.
.B --data-dir (Default: @CMAKE_INSTALL_PREFIX@/share/pdf2htmlEX)
Specify the folder holding the manifest and other files (see below for the manifest file)`
+.TP
+.B --tmp-dir (Default: /tmp)
+Specify the temporary folder to use for temporary files
+
.TP
.B --css-draw <0|1> (Default: 0)
Experimental and unsupported CSS drawing
diff --git a/src/pdf2htmlEX.cc b/src/pdf2htmlEX.cc
index 8869532..9d55e0c 100644
--- a/src/pdf2htmlEX.cc
+++ b/src/pdf2htmlEX.cc
@@ -169,7 +169,7 @@ void parse_options (int argc, char **argv)
.add("embed-image", ¶m.embed_image, 1, "embed image files into output")
.add("embed-javascript", ¶m.embed_javascript, 1, "embed JavaScript files into output")
.add("embed-outline", ¶m.embed_outline, 1, "embed outlines into output")
- .add("output-size-limit", ¶m.max_size, -1, "Limit the output size, in KB (-1 for no limit). This is only an estimate, the output may be bigger")
+ .add("tmp-file-size-limit", ¶m.max_size, -1, "Limit the temporary file output size, in KB (-1 for no limit). This is only an estimate, the output may be bigger")
.add("split-pages", ¶m.split_pages, 0, "split pages into separate files")
.add("dest-dir", ¶m.dest_dir, ".", "specify destination directory")
.add("css-filename", ¶m.css_filename, "", "filename of the generated css file")