Hi team,
I use Aspose.pdf for Net, Vers. 21.6.
I’m trying to flatten, convert or render a PDF file, that contains a signature with a signatur image. The PDF file is an xfa-Form-PDF.
After flatten, convert or render the signature image always disappears.
Unbenannt.pdf (225.5 KB)
The source code:
for flatten:
pdfDocument = new Aspose.Pdf.Document(“abc.pdf”);
pdfDocument.Flatten();
pdfDocument.Save(“abcd”);
for Convert:
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(“abc”);
pdfDocument.Convert(new MemoryStream(), PdfFormat.PDF_A_1A, ConvertErrorAction.Delete);
pdfDocument.Save(“abcd”);
for rendering:
PdfConverter converter = new PdfConverter();
converter.BindPdf(“abc.pdf”);
converter.DoConvert();
while (converter.HasNextImage())
converter.GetNextImage(“abc.pdf” +
System.DateTime.Now.Ticks.ToString() + “_out.jpg”, System.Drawing.Imaging.ImageFormat.Jpeg);
converter.Close();
As attachment , see the original PDF File (use this file only for your internal tests , and delete it thereafter).
Do you have any idea, why the signature image disappears.
Thank you
Regards/Franz