Free Support Forum - groupdocs.com

Max Dimensions


#1

Hi, I’m trying to use Viewer for converting pptx to images

ViewerConfig config = Utilities.getConfiguration();

// Create image handler
ViewerImageHandler imageHandler = new ViewerImageHandler(config);

// Get document html for print
PrintableHtmlOptions options = new PrintableHtmlOptions(“Performance_Out.pptx”);
PrintableHtmlContainer container = imageHandler.getPrintableHtml(“Performance_Out.pptx”, options);

Every time I get an exception:
com.groupdocs.viewer.converter.b.h.bU(Unknown Source)
com.groupdocs.viewer.converter.a.bW(Unknown Source)
com.groupdocs.viewer.handler.ViewerHandler.a(Unknown Source)
com.groupdocs.viewer.handler.ViewerHandler.a(Unknown Source)
com.groupdocs.viewer.handler.ViewerImageHandler.a(Unknown Source)
com.groupdocs.viewer.handler.ViewerImageHandler.getPrintableHtml(Unknown Source)
com.groupdocs.viewer.examples.MainClass.main(MainClass.java:49) —> class com.groupdocs.viewer.exception.GroupDocsException: java.lang.IllegalArgumentException: Dimensions (width=2147483647 height=2147483647) are too large —> java.lang.IllegalArgumentException: Dimensions (width=2147483647 height=2147483647) are too large


#2

@blackmorse,

Please share with us the following details so that we can investigate the issue at our end.

  • Version of GroupDocs.Viewer for Java you are using
  • The problematic PPTX document

Furthermore, you have mentioned that you are trying to convert PPTX to images, however, the code you have shared is getting the printable HTML of the input document. For rendering document’s pages as images, please visit this article.


#3

Sorry , my code sample may confuse you

The actual code is next:

ViewerConfig config = Utilities.getConfiguration();
ViewerImageHandler imageHandler = new ViewerImageHandler(config);
List<PageImage> pages = imageHandler.getPages(“Performance_Out.pptx”);

But the error is the same.
Two sample pptx files with mentioned troubles.
Storage.zip (2.9 MB)

groupdocs version: 19.3

Open JDK 11

Thx


#4

@blackmorse,

Thanks for providing the actual code. We are able to reproduce the issue using GroupDocs.Viewer for Java 19.3 with JDK 11. The issue has been logged into our Issue Tracking System (ID: VIEWERJAVA-1948) for further investigation. We shall keep you notified as soon as we have any updates for you.


#5

@blackmorse,

The issue you have found earlier (logged as VIEWERJAVA-1948) has been fixed in this release.