Does Aspose.PDF generates accessible PDF if generation is via XSL FO markup?

I would like to know if generating PDF from XSL FO markup will produce accessible PDF (WCAG 2.1 compliant)?


The API does not support direct conversion of XSL-FO to PDF. However, once the PDF is generated, you can convert it into Tagged PDF using the below code snippet. Please feel free to let us know in case you face any issue:

Document pdfDocument = new Document(dataDir + "sample.pdf");
pdfDocument1.Convert(dataDir + "log.xml", PdfFormat.PDF_UA_1, ConvertErrorAction.Delete);
pdfDocument1.Save(dataDir + "output.pdf");
1 Like