Max Page Width
Sets the maximum width of the converted document. This can be used in conjunction with maxPageHeight to limit page dimensions to a given size.
Pages larger than the given dimensions will be scaled down to fit within those dimensions. Pages smaller than the given dimensions will be unaffected.
This setting may be useful to prevent rogue documents with unusually large pages from causing OutOfMemoryErrors (which may otherwise bring down the JVM).
Expected values:
- Any positive integer value
Default: 5000
Since: 2023.05
Usage Examples
Command Line
-Dorg.jpedal.pdf2html.maxPageWidth=5000
Cloud
{ "org.jpedal.pdf2html.maxPageWidth": 5000 }
Java
conversionOptions.setMaxPageWidth(5000);