Skip to end of metadata
Go to start of metadata
Contents Summary
 

Following methods elaborate the conversion of supported document(s) to an Image format where you can get the output as converted file Path, Stream. You can also use more advanced conversion options such as loading a password protected document.

The source code in below examples uses some methods defined in Working with Common Operations

You can set the type of the output images using the ImageSaveOptions.ImageFileType. ImageFileType enumeration contains the following members:

  • BMP
  • GIF
  • ICO
  • JP2
  • JPEG
  • JPG
  • PNG
  • PSD
  • SVG
  • TIF
  • TIFF
  • WEBP

FileType enumeration contains many file formats not limited to:

  • Bmp
  • Cgm
  • Csv
  • Dcm
  • Dgn
  • Djvu
  • Dng
  • Doc
  • Docm
  • Docx
  • Dot

Convert and Get File Path

Converts and Render file to an Image file format and get output as file path

Convert and Get IO Stream

Converts and Render Document as an Image file format and outputs the resulting file to a stream

Convert with Advance Options and Get File Path

In advance options example Converts and Render Password Protected file to an Image file format and get output as File Path

Convert with Advance Options and Get IO Stream

In advance options example Converts and Render Password Protected file to an Image file format and get output as IO Stream

Convert to Grayscale Image

The Recipe

  • Setup conversion configuration
  • Define image save options
  • Set convert file type to JPG
  • Set setGrayscale property to true
  • Save results 

The Code

Mark Obsolete DPI

The Recipe

  • Setup conversion configuration
  • Define image save options
  • Set convert file type to TIFF
  • Set setHorizontalResolution property to number
  • Set setVerticalResolution property to number
  • Convert the file
  • Save results 

The Code

Labels
  • No labels