Skip to content

Instantly share code, notes, and snippets.

@documentize
Created December 11, 2024 06:34
Show Gist options
  • Save documentize/74c478784bef703794e7b26fa4ccb771 to your computer and use it in GitHub Desktop.
Save documentize/74c478784bef703794e7b26fa4ccb771 to your computer and use it in GitHub Desktop.
Easily convert PDF document pages into high-quality JPEG images using Documentize .NET Plugin.
// create JpegConverter
var plugin = new JpegConverter();
// create PdfToJpegOptions object to set instructions
var opt = new PdfToJpegOptions();
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new DirectoryDataSource(outputPath));
// perform the process
plugin.Process(opt);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment