Link

Max Page Height

Sets the maximum height of the converted document. This can be used in conjunction with maxPageWidth 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.maxPageHeight=5000

Cloud

{ "org.jpedal.pdf2html.maxPageHeight": 5000 }

Java

conversionOptions.setMaxPageHeight(5000);

Start Your Free Trial


Customer Downloads