Q: When I add text markup annotations at the location returned by findText(), sometimes, the location of the text markup is off. This seems to happen when the PDF is cropped or rotated. Can you explain how to fix this? A: When a page has a rotation or a crop box, PDF coordinates and display […]
Articles Tagged: highlight text
Search Text and Add Text Highlights & Markups in a PDF document
This java sample shows how to search text in a PDF and add text highlights or text markup annotations (underline, strikeout, squiggly) on top of the text using Qoppa’s PDF library jPDFProcess. // Open the document PDFDocument inDoc = new PDFDocument ("c:/input.pdf", null); // Loop through the pages, searching for text for (int pageIx […]