PdfArray Annots = PageDictionary.GetAsArray(PdfName.ANNOTS); foreach (PdfObject A in Annots.ArrayList) { //Convert the itext-specific object as a generic PDF object PdfDictionary AnnotationDictionary = (PdfDictionary)PdfReader.GetPdfObject(A); //Make sure this annotation has a link if (!AnnotationDictionary.Get(PdfName.SUBTYPE).Equals(PdfName.LINK)) continue; //Make sure this annotation has an ACTION if (AnnotationDictionary.Get(PdfName.A) == null) continue; //Get the ACTION for the current annotation PdfDictionary AnnotationAction = AnnotationDictionary.GetAsDict(PdfName.A); // PdfDictionary AnnotationAction = (PdfDictionary)AnnotationDictionary.Get(PdfName.A); if (AnnotationAction.Get(PdfName.S).Equals(PdfName.URI)) {
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)