I was given a document that is timing out in our system because of the length of time it takes for each page to export (15 to 30 seconds), however when this document is re-printed to pdf it works fine.
this is how we're exporting each page.
for (int i = 0; i < loadedDocument.Pages.Count; i++)
{
var imageBitmap = loadedDocument.ExportAsImage(i);
var imageBytes = this.ImageToByte(imageBitmap);
images.Add(Convert.ToBase64String(imageBytes));
imageBitmap.Dispose();
}
Attachment:
cdca54f9b47c4810a8dcb5ae7ca0429d_518dad62.zip