Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions html2pdf4doc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,8 @@ def _main() -> None:
)
command_parser_print.add_argument(
"--page-load-timeout",
# 10 minutes should be enough to print even the largest documents.
type=IntRange(0, 10 * 60),
# 60 minutes should be enough to print even the largest documents.
type=IntRange(0, 60 * 60),
default=2 * 60,
help=(
"How long shall html2pdf4doc Python driver wait while the "
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
RUN: %expect_exit 2 %html2pdf print --page-load-timeout 1000000 %S/index1.html %S/Output/index1.pdf 2>&1 | filecheck %s

CHECK: {{.*}} print: error: argument --page-load-timeout: Must be an integer in the range [0, 600].
CHECK: {{.*}} print: error: argument --page-load-timeout: Must be an integer in the range [0, 3600].
Loading