1 31 package org.pdfbox.pdmodel.documentinterchange.logicalstructure; 32 33 import org.pdfbox.cos.COSBase; 34 import org.pdfbox.cos.COSDictionary; 35 import org.pdfbox.pdmodel.common.COSObjectable; 36 37 44 public class PDMarkInfo implements COSObjectable 45 { 46 private COSDictionary dictionary; 47 48 52 public PDMarkInfo() 53 { 54 dictionary = new COSDictionary(); 55 } 56 57 62 public PDMarkInfo( COSDictionary dic ) 63 { 64 dictionary = dic; 65 } 66 67 72 public COSBase getCOSObject() 73 { 74 return dictionary; 75 } 76 77 82 public COSDictionary getDictionary() 83 { 84 return dictionary; 85 } 86 87 92 public boolean isMarked() 93 { 94 return dictionary.getBoolean( "Marked", false ); 95 } 96 97 102 public void setMarked( boolean value ) 103 { 104 dictionary.setBoolean( "Marked", value ); 105 } 106 107 112 public boolean usesUserProperties() 113 { 114 return dictionary.getBoolean( "UserProperties", false ); 115 } 116 117 122 public void setUserProperties( boolean userProps ) 123 { 124 dictionary.setBoolean( "UserProperties", userProps ); 125 } 126 127 133 public boolean isSuspect() 134 { 135 return dictionary.getBoolean( "Suspects", false ); 136 } 137 138 145 public void setSuspect( boolean suspect ) 146 { 147 dictionary.setBoolean( "Suspects", false ); 148 } 149 } 150 | Popular Tags |