KeyView 23.4

# Configure the Size of Exported Images

When you use the `pdf2sr` reader to export images of the pages in a PDF file, you can configure the size of the images produced by KeyView.

NOTE: When a page in a PDF document consists of a single embedded image (such as when the PDF is a scanned document), the page image is output at the original size of the embedded image and the following settings have no effect.

To configure the size of images produced by pdf2sr

1. Open the configuration file `formats_e.ini`.
2. Find the section `[pdf2sr]`, or create the section if it does not exist.

3. Set the configuration parameters `XMLXRes` and `XMLYRes`. `XMLXRes` specifies the width of the output image and `XMLYRes` specifies the height.

   - To specify an absolute size, in pixels, use positive values. The aspect ratio is always maintained, so you can set one of the dimensions and set the other parameter to `0`. For example, to output images of PDF pages where the height of each image is 400 pixels, use the following configuration:

         [pdf2sr]
         XMLXRes=0
         XMLYRes=400

     If you set both `XMLXRes` and `XMLYRes` to positive values, KeyView produces the largest image that fits within the specified dimensions (the width or height will be as requested, and the other dimension is smaller than requested if required to preserve the aspect ratio).

   - To specify a relative size, set `XMLXRes` to a negative value and `XMLYRes` to `0` (a negative value for `XMLYRes` is ignored). The aspect ratio is always maintained. For example, to output images of PDF pages where the size of each image is 150% of the original size, use the following configuration.

         [pdf2sr]
         XMLXRes=-150
         XMLYRes=0

NOTE: The default values for `XMLXRes` and `XMLYRes` are shown below. These values produce an image at 113% of the original page size:

    [pdf2sr]
    XMLXRes=-113
    XMLYRes=0

Copyright 1997-2023 Open Text
Version 23.4 | Last updated September 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL KeyView 23.4

Topic Title: Configure the Size of Exported Images