Hi,
In our project, we had an existing PDF file which needs to be converted into tagged PDF in order to meet accessibility requirements. So I used below code and the PDF file was successfully converted to tagged PDF. Now the problem is that, in the converted file, the links (which were originally anchor tags) are not working. Please help me in this context. I am also attaching sample pdf file.Documents ABA Board Authority.pdf (64.8 KB)
Document pdfDocument = new Document(inputPdfPath);
Document pdfDocument1 = new Document();
foreach (Page pdfPage in pdfDocument.Pages)
{
Artifact a = new Artifact(Artifact.ArtifactType.Page, Artifact.ArtifactSubtype.Background);
a.SetPdfPage(pdfPage);
Page aPage = pdfDocument1.Pages.Add();
aPage.Artifacts.Add(a);
}
pdfDocument1.Convert(xmlPath, PdfFormat.PDF_UA_1, ConvertErrorAction.Delete);
pdfDocument1.Save(outputPdfPath);