/** * This will retrieve the markup annotation which this popup relates to. * * @return The parent markup annotation. */ public PDAnnotationMarkup getParent() { PDAnnotationMarkup am = null; try { am = (PDAnnotationMarkup) PDAnnotation.createAnnotation(getCOSObject() .getDictionaryObject(COSName.PARENT, COSName.P)); } catch (IOException ioe) { LOG.debug("An exception while trying to get the parent markup - ignoring", ioe); // Couldn't construct the annotation, so return null i.e. do nothing } return am; }
/** * This will retrieve the annotation to which this one is "In Reply To" the actual relationship * is specified by the RT entry. * * @return the other annotation or null if there is none. * @throws IOException if there is an error creating the other annotation. */ public PDAnnotation getInReplyTo() throws IOException { COSBase base = getCOSObject().getDictionaryObject("IRT"); if (base instanceof COSDictionary) { return PDAnnotation.createAnnotation(base); } return null; }
PDAnnotation createdAnnotation = PDAnnotation.createAnnotation(item); if (annotationFilter.accept(createdAnnotation))
PDAnnotation annotation = PDAnnotation.createAnnotation(obj);
/** * This will retrieve the annotation to which this one is "In Reply To" the actual relationship * is specified by the RT entry. * * @return the other annotation or null if there is none. * @throws IOException if there is an error creating the other annotation. */ public PDAnnotation getInReplyTo() throws IOException { COSBase base = getCOSObject().getDictionaryObject("IRT"); if (base instanceof COSDictionary) { return PDAnnotation.createAnnotation(base); } return null; }
/** * This will retrieve the annotation to which this one is "In Reply To" the actual relationship * is specified by the RT entry. * * @return the other annotation or null if there is none. * @throws IOException if there is an error creating the other annotation. */ public PDAnnotation getInReplyTo() throws IOException { COSBase base = getCOSObject().getDictionaryObject("IRT"); if (base instanceof COSDictionary) { return PDAnnotation.createAnnotation(base); } return null; }
/** * This will retrieve the markup annotation which this popup relates to. * * @return The parent markup annotation. */ public PDAnnotationMarkup getParent() { PDAnnotationMarkup am = null; try { am = (PDAnnotationMarkup) PDAnnotation.createAnnotation(getCOSObject() .getDictionaryObject(COSName.PARENT, COSName.P)); } catch (IOException ioe) { // Couldn't construct the annotation, so return null i.e. do nothing } return am; }
/** * This will retrieve the markup annotation which this popup relates to. * * @return The parent markup annotation. */ public PDAnnotationMarkup getParent() { PDAnnotationMarkup am = null; try { am = (PDAnnotationMarkup) PDAnnotation.createAnnotation(getCOSObject() .getDictionaryObject(COSName.PARENT, COSName.P)); } catch (IOException ioe) { // Couldn't construct the annotation, so return null i.e. do nothing } return am; }
private String addPopup(COSBase item) { String id = getId(item, FeatureObjectType.ANNOTATION); if (checkIDBeforeProcess(id)) { COSBase base = getBase(item); try { PDAnnotation annotation = PDAnnotation.createAnnotation(base); reporter.report(PBFeaturesObjectCreator.createAnnotFeaturesObject(annotation, id, null, null)); } catch (IOException e) { LOGGER.debug("Unknown annotation type detected.", e); generateUnknownAnnotation(id); } } return id; }
actuals.add(PDAnnotation.createAnnotation(item));
PDAnnotation createdAnnotation = PDAnnotation.createAnnotation(item); if (annotationFilter.accept(createdAnnotation))
PDAnnotation annotation = PDAnnotation.createAnnotation(obj);
PDAnnotation annotation = PDAnnotation.createAnnotation(obj);
COSBase base = getBase(item); try { PDAnnotation annotation = PDAnnotation.createAnnotation(base); COSBase pop = annotation.getCOSObject().getItem(COSName.getPDFName("Popup"));