The PdfViewOptions class has the following methods to set or get the image width or/and height:
/**
* Max width of an output image in pixels. (When converting single image to HTML only)
*/publicintgetImageMaxWidth();/**
* Max width of an output image in pixels. (When converting single image to HTML only)
*/publicvoidsetImageMaxWidth(intimageMaxWidth);/**
* Max height of an output image in pixels. (When converting single image to HTML only)
*/publicintgetImageMaxHeight();/**
* Max height of an output image in pixels. (When converting single image to HTML only)
*/publicvoidsetImageMaxHeight(intimageMaxHeight);/**
* The width of the output image in pixels. (When converting single image to HTML only)
*/publicintgetImageWidth();/**
* The width of the output image in pixels. (When converting single image to HTML only)
*/publicvoidsetImageWidth(intimageWidth);/**
* The height of an output image in pixels. (When converting single image to HTML only)
*/publicintgetImageHeight();/**
* The height of an output image in pixels. (When converting single image to HTML only)
*/publicvoidsetImageHeight(intimageHeight);
You can set the width and/or height of the output images. Use one of the following methods:
To render a single image, call setImageWidth/setImageHeight methods.
To render multiple images, call setImageMaxWidth/setImageMaxHeight options. If an image exceeds these limits, it is resized proportionally.
Warning
If you set the ImageWidth/ImageHeight options, calls of setImageMaxWidth/setImageMaxHeight methods are ignored.
To call the setImageMaxWidth/setImageMaxHeight methods, follow these steps: