SDK Conversion Options

SDK Conversion Options

[TOC]

PDFConversionOptions

ConversionOptions pdfOpts = new PDFConversionOptions()
    .SetHeight(800)
    .SetWidth(1000)
    .SetLeftMargin(10)
    .SetRightMargin(10)
    .SetBottomMargin(10)
    .SetTopMargin(10)
    .SetQuality(95);
Name Type Description Notes
Width Number Resulting document page width in points (1/96 inch). [optional]
Height Number Resulting document page height in points (1/96 inch). [optional]
LeftMargin Number Left resulting document page margin in points (1/96 inch). [optional]
RightMargin Number Right resulting document page margin in points (1/96 inch). [optional]
TopMargin Number Top resulting document page margin in points (1/96 inch). [optional]
BottomMargin Number Bottom resulting document page margin in points (1/96 inch). [optional]
JpegQuality Number Quality of jpeg compression in percent. [optional]

XPSConversionOptions

ConversionOptions xpsOpts = new XPSConversionOptions()
    .SetHeight(800)
    .SetWidth(1000)
    .SetLeftMargin(10)
    .SetRightMargin(10)
    .SetBottomMargin(10)
    .SetTopMargin(10);
Name Type Description Notes
Width Number Resulting document page width in points (1/96 inch). [optional]
Height Number Resulting document page height in points (1/96 inch). [optional]
LeftMargin Number Left resulting document page margin in points (1/96 inch). [optional]
RightMargin Number Right resulting document page margin in points (1/96 inch). [optional]
TopMargin Number Top resulting document page margin in points (1/96 inch). [optional]
BottomMargin Number Bottom resulting document page margin in points (1/96 inch). [optional]

JPEGConversionOptions

ConversionOptions jpgOpts = new JPEGConversionOptions()
    .SetHeight(800)
    .SetWidth(1000)
    .SetLeftMargin(10)
    .SetRightMargin(10)
    .SetBottomMargin(10)
    .SetTopMargin(10)
    .SetResolution(300);
Name Type Description Notes
Width Number Resulting document page width in points (1/96 inch). [optional]
Height Number Resulting document page height in points (1/96 inch). [optional]
LeftMargin Number Left resulting document page margin in points (1/96 inch). [optional]
RightMargin Number Right resulting document page margin in points (1/96 inch). [optional]
TopMargin Number Top resulting document page margin in points (1/96 inch). [optional]
BottomMargin Number Bottom resulting document page margin in points (1/96 inch). [optional]
Resolution Number Resolution of the resulting image. The default is 96 dpi. [optional]

PNGConversionOptions

ConversionOptions pngOpts = new PNGConversionOptions()
    .SetHeight(800)
    .SetWidth(1000)
    .SetLeftMargin(10)
    .SetRightMargin(10)
    .SetBottomMargin(10)
    .SetTopMargin(10)
    .SetResolution(300);
Name Type Description Notes
Width Number Resulting document page width in points (1/96 inch). [optional]
Height Number Resulting document page height in points (1/96 inch). [optional]
LeftMargin Number Left resulting document page margin in points (1/96 inch). [optional]
RightMargin Number Right resulting document page margin in points (1/96 inch). [optional]
TopMargin Number Top resulting document page margin in points (1/96 inch). [optional]
BottomMargin Number Bottom resulting document page margin in points (1/96 inch). [optional]
Resolution Number Resolution of the resulting image. The default is 96 dpi. [optional]

BMPConversionOptions

ConversionOptions bmpOpts = new BMPConversionOptions()
    .SetHeight(800)
    .SetWidth(1000)
    .SetLeftMargin(10)
    .SetRightMargin(10)
    .SetBottomMargin(10)
    .SetTopMargin(10)
    .SetResolution(300);
Name Type Description Notes
Width Number Resulting document page width in points (1/96 inch). [optional]
Height Number Resulting document page height in points (1/96 inch). [optional]
LeftMargin Number Left resulting document page margin in points (1/96 inch). [optional]
RightMargin Number Right resulting document page margin in points (1/96 inch). [optional]
TopMargin Number Top resulting document page margin in points (1/96 inch). [optional]
BottomMargin Number Bottom resulting document page margin in points (1/96 inch). [optional]
Resolution Number Resolution of the resulting image. The default is 96 dpi. [optional]

GIFConversionOptions

ConversionOptions gifOpts = new GIFConversionOptions()
    .SetHeight(800)
    .SetWidth(1000)
    .SetLeftMargin(10)
    .SetRightMargin(10)
    .SetBottomMargin(10)
    .SetTopMargin(10)
    .SetResolution(300);
Name Type Description Notes
Width Number Resulting document page width in points (1/96 inch). [optional]
Height Number Resulting document page height in points (1/96 inch). [optional]
LeftMargin Number Left resulting document page margin in points (1/96 inch). [optional]
RightMargin Number Right resulting document page margin in points (1/96 inch). [optional]
TopMargin Number Top resulting document page margin in points (1/96 inch). [optional]
BottomMargin Number Bottom resulting document page margin in points (1/96 inch). [optional]
Resolution Number Resolution of the resulting image. The default is 96 dpi. [optional]

TIFFConversionOptions

ConversionOptions tiffOpts = new TIFFConversionOptions()
    .SetHeight(800)
    .SetWidth(1000)
    .SetLeftMargin(10)
    .SetRightMargin(10)
    .SetBottomMargin(10)
    .SetTopMargin(10)
    .SetResolution(300);
Name Type Description Notes
Width Number Resulting document page width in points (1/96 inch). [optional]
Height Number Resulting document page height in points (1/96 inch). [optional]
LeftMargin Number Left resulting document page margin in points (1/96 inch). [optional]
RightMargin Number Right resulting document page margin in points (1/96 inch). [optional]
TopMargin Number Top resulting document page margin in points (1/96 inch). [optional]
BottomMargin Number Bottom resulting document page margin in points (1/96 inch). [optional]
Resolution Number Resolution of the resulting image. The default is 96 dpi. [optional]

MarkdownConversionOptions

ConversionOptions mdOpts = new MarkdownConversionOptions()
    .SetUseGit(true);
Name Type Description Notes
UseGit Boolean Use Git Markdown flavor to save. [optional] [default to false]

MHTMLConversionOptions

ConversionOptions mhtmlOpts = new MHTMLConversionOptions();