PDFA3B in corrupt format

Hi @asad.ali ,

When we try to convert mentioned file to PDFA3B format using ur sample code, we get output as corrupted (see response_output.pdf is corrupted).

responseOutput.pdf (2.9 KB)

Input.pdf (193.1 KB)

@g.trovatelli
When using the library version 24.06 and the code

var doc = new Document(dataDir + "input.pdf");
doc.Form.Type = Aspose.Pdf.Forms.FormType.Standard;
doc.Convert(new MemoryStream(), PdfFormat.PDF_A_3B, ConvertErrorAction.Delete);
doc.Save(dataDir + "output.pdf");

I got a readable document.
1.png (29.7 KB)
When checking it with Adobe Preflight there are some comments - however this violation is in the original document and during conversion it simply remains.

What is this “doc.Form.Type = Aspose.Pdf.Forms.FormType.Standard;”

How do u recognise its EForm ?? We didnt include this line any where , Please confirm
coz we dont want to have its impact on already existing Documents.

  1. Also Please share your Output PDFA3b format file .

@g.trovatelli

This line translates the dynamic (XFA) form into a standard one.

output.pdf (1.7 MB)
I am attaching the converted document (without a license there are more errors in it, but at least it opens without comments)