Here is a sample Java program showing how to remove all link annotations present in a PDF document using Qoppa’s PDF library jPDFProcess: // Load PDF document PDFDocument pdfDoc = new PDFDocument ("C:\\myfolder\\input.pdf", null); int pageCount = pdfDoc.getPageCount(); // loop through pages for (int i = 0; i < pageCount; i++) { try { PDFPage […]
Articles Tagged: annotations
Selecting an annotation on a page in Qoppa’s PDF components
Q: How can I select a given annotation on a page in jPDFViewer, jPDFNotes or jPDFEditor? A: You will need to work with the IAnnotationManager, which manages the selection cycle for annotations. IAnnotationManager annotmanager = viewerBean.getAnnotationManager();IAnnotationManager annotmanager = viewerBean.getAnnotationManager(); This interface manages the selection cycle for annotation components on a page and allows to programmatically […]
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 […]
Getting information about the annotations contained in each page of a PDF document
Annotations are stored in a vector within each page of a PDF document. Here is sample code to loop through annotations contained in each page and output information about each annotation including annotation type, creator, date modified, color, bounds using Qoppa’s Java library jPDFProcess. This code can be adapted to work with Qoppa’s PDF components, […]
How to add your own custom annotation tools in Qoppa PDF component
Q: Can I add my own custom annotation tools to Qoppa PDF component’s toolbar? A: Yes. Qoppa PDF components jPDFNotes and jPDFEditor are fully customizable including the Annotation Toolbar. You can remove any existing tools / buttons from the annotation toolbar and add your own buttons for your own tools. This applies to jPDFNotes and […]
Annotations, Links and Form Fields Supported in PDF to SVG Conversion
Q: Does jPDFWeb renders annotations and form fields when converting PDF documents to SVG / HTML5? A: Yes, jPDFWeb will render the following annotations / widgets. Graphical Annotations All types of graphical annotations defined by the PDF specifications are supported: square, circle, pencil, polygon, polyline, cloud, etc… Text Annotations Sticky notes, typewriter, text box and […]
Exporting and Merging PDF annotations in FDF and XFDF format
By default, jPDFNotes saves annotations within the PDF document. Qoppa’s PDF tools are fully compliant with the PDF format specs, so all annotations created by jPDFNotes are usable by other PDF applications (such as Adobe Reader), and vice-versa. The PDF format also defines two other file formats to store annotations separate from the PDF document, they […]
Annotations not visible in other PDF viewers
Q: We have noticed PDF documents edited with jPDFNotes do not show their annotation when rendered in a PDF viewer used by one of our applications. This may be a limitation of the other viewer rather than your component. If this is the case, can your component be configured to render directly onto the underlying […]
Merging comments from multiple reviewers into one PDF
Q: Our environment needs to annotate the same PDFs by more than one person at the same time and all the annotations have to be saved in the root PDF document at the server. Is it possible? A: Yes, it is possible to have multiple people review a document and then merge the comments. Annotations […]