Link

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);

What's included in your BuildVu trial?

  • Access to download the SDK and run it locally.
  • Access to the cloud trial to convert documents in the IDR cloud.
  • Access to the Docker image to set up your own trial server in the cloud.
  • Communicate with IDR developers to ask questions & get expert advice.
  • Plenty of time to experiment and build a proof of concept.
  • Over 100 articles to help you get started and learn about BuildVu.
  • An exceptional PDF to HTML converter that took over 20 years to build!

Start Your Free Trial