Hi,
I have a PDF document which has interactive form fields in it. When I try to convert to PDFA the conversion process completes successfully but when I check for PDFA compliancy it is not PDFA. Document is attached here Admissions Application (6).pdf (121.8 KB)
I am using Aspose.PDF, Version=21.10.0.0
My code for conversion to PDFA is as below.
Aspose.Pdf.Document PdfDocument = new Aspose.Pdf.Document(GetExtendedFilePath(InputFileName));
using (FileStream CompressedFileStream = new FileStream(tempfile, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None))
{
PdfDocument.Info.ModDate = DateTime.Now;
PdfDocument.Convert(new MemoryStream(), PdfFormat.PDF_A_2A, ConvertErrorAction.Delete);
PdfDocument.Save(CompressedFileStream);
OutputFileBytes = new byte[CompressedFileStream.Length];
CompressedFileStream.Seek(0, System.IO.SeekOrigin.Begin);
CompressedFileStream.Read(OutputFileBytes, 0, (int)CompressedFileStream.Length);
}
Your help is appriciated.
Thanks.