using (Document pdf = New Document(sourcePath))
{
Parallel.For(data.start_page, data.end_page + 1, x =>
{
var width = (pdf.Pages[x].GetPageRect(true).Width * percentage).ToInt();
var height = (pdf.Pages[x].GetPageRe…...10:35am 1 using (Document pdf = new Document(sourcePath)) { Parallel...JpegDevice jpg = new JpegDevice(width, height, new Resolution(data...