Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GroupDocsGists/84c57a1baba85299495b2e28cc2915c0 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/84c57a1baba85299495b2e28cc2915c0 to your computer and use it in GitHub Desktop.
// 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