I’m facing an issue when converting some forms PDF to image (Png or Jpeg).
The used PDF (provided in attachment) is a form with several fields.
As we can see at opening the pdf, the fields are filled.
But, when converting to image, all the fields appears empty, with no value.
Here is the code that I use (with Aspose.Pdf v220.127.116.11) :
var pdfFilename = @“D:\Test\PdfForm.pdf”;
var pngFileName = pdfFilename.Replace(".pdf", “.png”);
using (var imageFileStream = new FileStream(pngFileName, FileMode.Create))
var pdfDocument = new Document(pdfFilename);
var resolution = new Resolution(300);
var pngDevice = new PngDevice(resolution);
PdfForm.pdf (265.9 KB)
Can you please figure out why the field values are not embeeded in the created image.
Otherwise, is there any way to detect the lack of field values ?