Hi
I used the following code to produce a PDF/A-1b Document. Without success. May you help me?
Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();
Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense(“Aspose.Total.lic”);
pdf1.Conformance = Aspose.Pdf.Generator.PdfConformance.PdfA1B;
Aspose.Pdf.Generator.Section sec1 = pdf1.Sections.Add();
pdf1.Save(“HelloWorld.pdf”);
License lic = new Aspose.Pdf.License();
lic.SetLicense(“Aspose.Total.lic”);
Document pdfDocument = new Document(“HelloWorld.pdf”);
Page pdfPage = (Page)pdfDocument.Pages[1];
TextFragment textFragment = new TextFragment(“main text”);
textFragment.Position = new Position(100, 600);
//textFragment.TextState.FontSize = 12;
//textFragment.TextState.Font = FontRepository.FindFont(“Arial”);
TextBuilder textBuilder = new TextBuilder(pdfPage);
textBuilder.AppendText(textFragment);
pdfDocument.Save(“output.pdf”);
pdfDocument = new Document(“output.pdf”);
pdfDocument.Validate(“log.xml”, PdfFormat.PDF_A_1B);
pdfDocument.Convert(“log.xml”, PdfFormat.PDF_A_1B, ConvertErrorAction.Delete);
pdfDocument.Save(“output.pdf”);