We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Converting Pdf with filled forms to image


I’m using Aspose.Pdf for converting pdf files to images. Here is my code:

var pdfDocument = new Aspose.Pdf.Document(inputFileName);
var pdfPageEditor = new Aspose.Pdf.Facades.PdfPageEditor();

for (int counter = 1; counter <= pdfDocument.Pages.Count; counter++)
using (FileStream imageStream = new FileStream(string.Format(“output_{0}.jpg”, counter.ToString()), FileMode.Create))
var pageSize = pdfPageEditor.GetPageSize(counter);
var jpegDevice = new JpegDevice(pageSize);
jpegDevice.Process(pdfDocument.Pages[counter], imageStream);

When I convert a pdf file with (already filled) forms, the output image files contain only empty forms. You can find an example in the attached file.

Should I use a different method to process the files?


Hi Dejan,

for using our API’s.

have tested the scenario and I am able to notice the same problem. For the sake
of correction, I have logged this problem as PDFNEWNET-37108 in
our issue tracking system. We will further look into the details of this
problem and will keep you updated on the status of correction. Please be
patient and spare us little time. We are sorry for this inconvenience.