iTextSharp PDF Reading highlighed text (highlight annotations) using C# -


I am developing a C # Wernerform application which converts text to PDF content. All the necessary materials are extracted, except the content found in PDF highlighted text. Please help get a working sample to remove the highlighted text found in PDF. I'm using iTextSharp.dll in this project

Assuming that you talk about comments are doing. Please try it:

 for  (int i = from page; i & lt; = pentu; i ++) {PDF device page = reader.gatepage n (i); PDFError Annotus = Page. GetAsre (iTextSharp.text.pdf.PdfName.ANNOTS); If (annots = null!) Foreach (pdfObject ANNOT in annots.ArrayList) {PdfDictionary Annotation = (PdfDictionary) PdfReader.GetPdfObject (ANNOT); PDF string content = annotation. Getreststrings (PDFNM.Cantans); // Now use the string value of the content}}}  

It is written from memory (I am a Java developer, not a C # developer).


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -