Hi there
I’m using Aspose PDF for .net 18.12.
i try to convert to pdf/a from pdf.
the convert result is true.
but the result of validation is false.
and when i open the pdf/a file in adobe acrobat reader it doesn’t show the message(“The file you have opened complies with the PDF/A standard and has been opened read-only to prevent modification.”).
please help~
below is my code
// for convert
string src = “pptx.pdf”;
string dst = “pptx_a1b.pdf”;
string log = “log.txt”;
Document pdfDocument = new Document(src);
bool isPdfa = pdfDocument.Convert(log, PdfFormat.PDF_A_1B, ConvertErrorAction.Delete); // “isPdfa” is true
pdfDocument.Save(dst);
// for validate
string pdfa = “pptx_a1b.pdf”;
string log = “log.txt”;
Document pdfDocument = new Document(pdfa);
bool isPdfa = pdfDocument.Validate(log, PdfFormat.PDF_A_1B); // “isPdfa” is false
test_pdfa.zip (2.5 MB)