Recently I downloaded a trial license of iText. I try to achieve the following goals:
- Create PDF documents from WORD, PP, Excel etc.
- Manipulating existing PDF files.
- (Most Important) - Files MUST be created / converted as full accessible for disables according to the WCAG 502 requirements (PDF/UA)
I tried the following code: (C#)
LicenseKey.LoadLicenseFile(@"D:\Development\itextkey-0.xml");
PdfDocument pdfDoc = new PdfDocument(new PdfReader(SRC), new PdfWriter(DEST, new WriterProperties().SetPdfVersion(PdfVersion.PDF_1_7)));
pdfDoc.SetTagged();
pdfDoc.GetCatalog().SetLang(new PdfString("HE-IL"));
pdfDoc.GetCatalog().SetViewerPreferences(
new PdfViewerPreferences().SetDisplayDocTitle(true));
PdfDocumentInfo info = pdfDoc.GetDocumentInfo();
info.SetTitle("iText7 PDF/UA example");
pdfDoc.Close();
But yet, after checking at Acrobat Reader the output file marked as "Not Tagged" PDF file.
Please advise how I should use iText to achieve my goals.