Adjust image size

Image Viewer allows you to set custom output image size in pixels through Width and Height properties in JpgViewOptions and PngViewOptions classes.

This example demonstrates how to set output image size

using (Viewer viewer = new Viewer("sample.docx"))
{
    JpgViewOptions viewOptions = new JpgViewOptions();
    viewOptions.Width = 600;
    viewOptions.Height = 800;
    
    viewer.View(viewOptions);
}