PdfOptions

PdfOptions data structure inherits RenderOptions and used as part of ViewOptions data structure.

ImageOptions example

{
    "DocumentOpenPassword": "string",
    "PermissionsPassword": "string",
    "Permissions": ["AllowAll", "DenyModification"],
    "PdfOptimizationOptions": {},
    "ImageMaxWidth": 0,
    "ImageMaxHeight": 0,
    "ImageWidth": 0,
    "ImageHeight": 0
}

ImageOptions fields

NameDescription
RenderOptions fieldsPdfOptions inherits all properties of RenderOptions
DocumentOpenPasswordThe password required to open the PDF document
PermissionsPasswordThe password required to change permission settings; Using a permissions password you can restrict printing, modification and data extraction
PermissionsThe array of PDF document permissions. Allowed values are: AllowAll, DenyPrinting, DenyModification, DenyDataExtraction, DenyAll. Default value is AllowAll, if now permissions are set.
PdfOptimizationOptionsContains options for rendering documents into PDF format. See PdfOptimizationOptions
ImageMaxWidthMax width of an output image in pixels. (When converting single image to PDF only)
ImageMaxHeightMax height of an output image in pixels. (When converting single image to PDF only)
ImageWidthThe width of the output image in pixels. (When converting single image to PDF only)
ImageHeightThe height of an output image in pixels. (When converting single image to PDF only)