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)?
https://docs.aspose.com/pdf/net/generate-pdf-from-xml/#generating-pdf-document-using-xsl-fo-markup

@qme

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