Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ConversionConfig config = new ConversionConfig();
ConversionHandler conversionHandler = new ConversionHandler(config);
String source = "source.pdf";
ImageSaveOptions saveOptions = new ImageSaveOptions();
saveOptions.setFlipMode(ImageSaveOptions.FlipModes.FLIP_X);
saveOptions.setBrightness(50);
saveOptions.setContrast(50);
saveOptions.setGamma(0.5f);
ConvertedDocument convertedDocument = conversionHandler.convert(source, saveOptions);
convertedDocument.save("result");
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.