PDAnnotationRubberStamp rs = new PDAnnotationRubberStamp(); rs.setName(PDAnnotationRubberStamp.NAME_TOP_SECRET); rs.setRectangle(new PDRectangle(100, 100)); rs.setContents("A top secret note");
/** * This will retrieve the name (and hence appearance, AP taking precedence) For this annotation. The default is * DRAFT. * * @return The name of this rubber stamp, see the NAME_XXX constants. */ public String getName() { return getCOSObject().getNameAsString(COSName.NAME, NAME_DRAFT); } }
public RubberStampAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdRStamp = new PDAnnotationRubberStamp(annotDictionary); this.pdAnnot = this.pdRStamp; }
annot = new PDAnnotationRubberStamp(annotDic);
PDAnnotationRubberStamp rubberStamp = new PDAnnotationRubberStamp(); rubberStamp.setName(PDAnnotationRubberStamp.NAME_TOP_SECRET); rubberStamp.setRectangle(new PDRectangle(200,100)); rubberStamp.setContents("A top secret note"); PDAppearanceDictionary appearance = new PDAppearanceDictionary(new COSDictionary()); appearance.setNormalAppearance(myDic); rubberStamp.setAppearance(appearance); rubberStamp.setRectangle(rect);
public RubberStampAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdRStamp = new PDAnnotationRubberStamp(annotDictionary); this.pdAnnot = this.pdRStamp; }
/** * This will set the name (and hence appearance, AP taking precedence) For this annotation. See the NAME_XXX * constants for valid values. * * @param name The name of the rubber stamp. */ public void setName(String name) { getCOSObject().setName(COSName.NAME, name); }
PDAnnotationRubberStamp rs = new PDAnnotationRubberStamp(); rs.setName(PDAnnotationRubberStamp.NAME_TOP_SECRET); rs.setRectangle(new PDRectangle(100, 100)); rs.setContents("A top secret note");
public RubberStampAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdRStamp = new PDAnnotationRubberStamp(annotDictionary); this.pdAnnot = this.pdRStamp; }
/** * Constructor. */ public PDAnnotationRubberStamp() { getCOSObject().setName(COSName.SUBTYPE, SUB_TYPE); }
PDAnnotationRubberStamp rubberStamp = new PDAnnotationRubberStamp(); rubberStamp.setName(PDAnnotationRubberStamp.NAME_TOP_SECRET); rubberStamp.setRectangle(new PDRectangle(200,100)); rubberStamp.setContents("A top secret note"); PDAppearanceDictionary appearance = new PDAppearanceDictionary(new COSDictionary()); appearance.setNormalAppearance(myDic); rubberStamp.setAppearance(appearance); rubberStamp.setRectangle(rect);
annot = new PDAnnotationRubberStamp(annotDic);
/** * This will retrieve the name (and hence appearance, AP taking precedence) For this annotation. The default is * DRAFT. * * @return The name of this rubber stamp, see the NAME_XXX constants. */ public String getName() { return getCOSObject().getNameAsString(COSName.NAME, NAME_DRAFT); } }
annot = new PDAnnotationRubberStamp(annotDic);
/** * Constructor. */ public PDAnnotationRubberStamp() { getCOSObject().setName(COSName.SUBTYPE, SUB_TYPE); }
/** * This will set the name (and hence appearance, AP taking precedence) For this annotation. See the NAME_XXX * constants for valid values. * * @param name The name of the rubber stamp. */ public void setName(String name) { getCOSObject().setName(COSName.NAME, name); }
/** * This will retrieve the name (and hence appearance, AP taking precedence) For this annotation. The default is * DRAFT. * * @return The name of this rubber stamp, see the NAME_XXX constants. */ public String getName() { return getCOSObject().getNameAsString(COSName.NAME, NAME_DRAFT); } }
/** * This will set the name (and hence appearance, AP taking precedence) For this annotation. See the NAME_XXX * constants for valid values. * * @param name The name of the rubber stamp. */ public void setName(String name) { getCOSObject().setName(COSName.NAME, name); }
/** * Constructor. */ public PDAnnotationRubberStamp() { getCOSObject().setItem(COSName.SUBTYPE, COSName.getPDFName(SUB_TYPE)); }