Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// For complete examples and data files, please go to https://github.com/groupdocs-conversion/GroupDocs.Conversion-for-.NET
// Instantiating the conversion handler from custom common class
ConversionHandler conversionHandler = Common.getConversionHandler();
var saveOptions = new ImageSaveOptions
{
FlipMode = FlipModes.FlipX,
Brightness = 50,
Contrast = 50,
Gamma = 0.5F
};
// Convert and save image documents.
var convertedDocument = conversionHandler.Convert(Common.inputGUIDFile, saveOptions);
//convertedDocument.Save("result");
for (int pagenum = 1; pagenum <= convertedDocument.PageCount; pagenum++)
{
convertedDocument.Save("result-" + Path.GetFileNameWithoutExtension(Common.inputGUIDFile) + pagenum.ToString() + "." + outputFileType, pagenum);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.