Resource Base
Table of contents

PdfSource

Syntax

interface PdfSource extends Source {
    convertMode: EnumConvertMode;   
    password?: string;  
    renderOptions?: {
        renderAnnotations?: boolean;
        resolution?: number;  
        maxWidth?: number;
        maxHeight?: number;
        renderGrayscale?: boolean;  
    };
}

Extends

Source

Attributes

convertMode

Specify PDF convert mode. Please refer to EnumConvertMode.

Default value: CM_AUTO

password

If a password is required to open the PDF, please set it here.

Default value: "".

renderOptions

renderAnnotations

Whether the annotations will be rendered or not. Only take effects when convertMode is set to CM_RENDERALL or CM_AUTO.

Default value: false

resolution

PDF DPI. Only affects rasterized text. Does not affect images which are extracted from the PDF file.

Default value: 200

maxWidth

Maximum width of the image to be rendered.

In pixels. 0 means no limit. Default value: 0

maxHeight

Maximum height of the image to be rendered.

In pixels. 0 means no limit. Default value: 0

renderGrayscale

Whether rasterize the PDF in grayscale.

Default value: false

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support