4/21/2017 - 9:09 AM


// For complete examples and data files, please go to
// Create/initialize image handler 
ViewerImageHandler imageHandler = new ViewerImageHandler(Utilities.GetConfigurations());

// Set pdf options JpegQuality in a range between 1 and 100
PdfFileOptions PdfFileOptions = new PdfFileOptions();
PdfFileOptions.JpegQuality = 5;

// Call GetPdfFile to get FileContainer type object which contains the stream of pdf file.
FileContainer container = imageHandler.GetPdfFile(DocumentName,PdfFileOptions);

//Change the extension of the file and assign to a string type variable filename
String filename = Path.GetFileNameWithoutExtension(DocumentName) + ".pdf";

//Save each image at disk
Utilities.SaveFile(filename, container.Stream);