Examples of PDAnnotationText


Examples of org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationText

    protected PDAnnotationText pdText = null;

    public TextAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary)
    {
        super(ctx, annotDictionary);
        this.pdText = new PDAnnotationText(annotDictionary);
        this.pdAnnot = this.pdText;
    }
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationText

    protected PDAnnotationText pdText = null;

    public TextAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary)
    {
        super(ctx, annotDictionary);
        this.pdText = new PDAnnotationText(annotDictionary);
        this.pdAnnot = this.pdText;
    }
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationText

  protected PDAnnotationText pdText = null;

  public TextAnnotationValidator(DocumentHandler handler,
      COSDictionary annotDictionary) {
    super(handler, annotDictionary);
    this.pdText = new PDAnnotationText(annotDictionary);
    this.pdAnnot = this.pdText;
  }
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationText

            return null;
        }

        for (Object annotation : annotations) {
            if (annotation instanceof PDAnnotationText) {
                PDAnnotationText annotation2 = (PDAnnotationText) annotation;
                COSBase subjectbase = annotation2.getDictionary().getItem(COSName.SUBJ);
                if (subjectbase instanceof COSObject) {
                    COSObject subject = (COSObject) subjectbase;
                    if (subject != null) {
                        COSBase ref_subject = ((COSObject) subject).getObject();

                        if (ref_subject instanceof COSStream) {
                            result.add(new Annotation(decodeStream((COSStream) ref_subject)));
                        }
                    }
                } else if (subjectbase instanceof COSString) {
                    COSString subject = (COSString) subjectbase;
                    result.add(new Annotation(subject.getString()));
                }
            } else if (annotation instanceof PDAnnotationUnknown) {
                PDAnnotationUnknown annotation2 = (PDAnnotationUnknown) annotation;
                COSObject subject = (COSObject) annotation2.getDictionary().getItem(COSName.SUBJ);
                if (subject != null) {
                    COSBase ref_subject = ((COSObject) subject).getObject();

                    if (ref_subject instanceof COSStream) {
                        result.add(new Annotation(decodeStream((COSStream) ref_subject)));
                        continue;
                    }
                }

                subject = (COSObject) annotation2.getDictionary().getItem(COSName._3DD); // 3D-Annots
                if (subject != null) {
                    COSBase ref_subject = ((COSObject) subject).getObject();

                    if (ref_subject instanceof COSStream) {
                        result.add(new Annotation(decodeStream((COSStream) ref_subject)));
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationText

            return null;
        }

        for (Object annotationRef : annotations) {
            if (annotationRef instanceof PDAnnotationText) {
                PDAnnotationText annotation = (PDAnnotationText) annotationRef;
                if (annotation.getAnnotationName().equals(name)) {
                    COSBase subject = annotation.getDictionary().getItem(COSName.SUBJ);
                    if (subject instanceof COSString) {
                        return new Annotation(((COSString) subject).getString());
                    } else if (subject instanceof COSObject) {
                        COSObject subjectObj = (COSObject) subject;
                        if (subjectObj != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.