1 31 package org.pdfbox.pdmodel.interactive.annotation; 32 33 import org.pdfbox.cos.COSDictionary; 34 import org.pdfbox.cos.COSName; 35 36 43 public class PDAnnotationRubberStamp extends PDAnnotationMarkup 44 { 45 46 50 51 54 public static final String NAME_APPROVED = "Approved"; 55 58 public static final String NAME_EXPERIMENTAL = "Experimental"; 59 62 public static final String NAME_NOT_APPROVED = "NotApproved"; 63 66 public static final String NAME_AS_IS = "AsIs"; 67 70 public static final String NAME_EXPIRED = "Expired"; 71 74 public static final String NAME_NOT_FOR_PUBLIC_RELEASE = "NotForPublicRelease"; 75 78 public static final String NAME_FOR_PUBLIC_RELEASE = "ForPublicRelease"; 79 82 public static final String NAME_DRAFT = "Draft"; 83 86 public static final String NAME_FOR_COMMENT = "ForComment"; 87 90 public static final String NAME_TOP_SECRET = "TopSecret"; 91 94 public static final String NAME_DEPARTMENTAL = "Departmental"; 95 98 public static final String NAME_CONFIDENTIAL = "Confidential"; 99 102 public static final String NAME_FINAL = "Final"; 103 106 public static final String NAME_SOLD = "Sold"; 107 108 111 public static final String SUB_TYPE = "Stamp"; 112 113 116 public PDAnnotationRubberStamp() 117 { 118 super(); 119 getDictionary().setItem( COSName.SUBTYPE, COSName.getPDFName( SUB_TYPE ) ); 120 } 121 122 128 public PDAnnotationRubberStamp(COSDictionary field) 129 { 130 super( field ); 131 } 132 133 139 public void setName( String name ) 140 { 141 getDictionary().setName(COSName.NAME, name); 142 } 143 144 150 public String getName() 151 { 152 return getDictionary().getNameAsString(COSName.NAME, NAME_DRAFT); 153 } 154 } | Popular Tags |