Adds a custom property to this Info dictionary.
(String key, String value)
| 312 | * Adds a custom property to this Info dictionary. |
| 313 | */ |
| 314 | public void put(String key, String value) { |
| 315 | StandardKey standardKey = StandardKey.get(key); |
| 316 | if (standardKey != null) { |
| 317 | throw new IllegalArgumentException(key + " is a reserved keyword"); |
| 318 | } |
| 319 | if (customProperties == null) { |
| 320 | customProperties = new LinkedHashMap<PDFName, String>(); |
| 321 | } |
| 322 | customProperties.put(new PDFName(key), value); |
| 323 | } |
| 324 | |
| 325 | } |
| 326 |