AppearanceDictionary
Vue de l’ensemble
‘AppearanceDictionary’ est une classe dans Aspose.PDF FOSS pour Java.
Vue typique sur le dictionnaire d’apparence du champ de formulaire {@code /AP} (ISO 32000-1:2008 §12.5.5).
Cette classe fournit 6 méthodes pour travailler avec AppearanceDictionary objets dans les programmes Java. Les méthodologies disponibles comprennent: AppearancesDictoriels, get , ‘getNormal; getPdfDictoriels’, ‘gettStateNames et 'isMultiStade. Tous les membres publics sont accessibles à n’importe quelle application Java après l’installation de l’Aspouse.PDF FOSS pour le package Java . Propriétés : multiStates; normal‘; 'pdfDication ou ‘stateName’.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
stateNames | Set<String> | Read | Returns the set of state names available under {@code /N} (normal |
| appearance) for multi-state widgets. | |||
normal | XForm | Read | Returns the single normal appearance stream for a single-state widget |
| (text fields, buttons, etc.), or {@code null} if the field is | |||
| multi-state or has no /N entry. | |||
multiState | boolean | Read | Returns {@code true} when {@code /AP/N} is a dictionary (multi-state), |
| {@code false} when it is a stream (single-state) or absent. | |||
pdfDictionary | PdfDictionary | Read | Returns the underlying /AP PDF dictionary for engine-side use. |
méthodes
| Signature | Description |
|---|---|
AppearanceDictionary(apDict: PdfDictionary) | Wraps the given /AP dictionary. |
getStateNames() → Set<String> | Returns the set of state names available under {@code /N} (normal |
| appearance) for multi-state widgets. | |
get(stateName: String) → XForm | Returns the normal appearance stream for the given state, or {@code null} |
| if the state name is not present or if the field is single-state. | |
getNormal() → XForm | Returns the single normal appearance stream for a single-state widget |
| (text fields, buttons, etc.), or {@code null} if the field is | |
| multi-state or has no /N entry. | |
isMultiState() → boolean | Returns {@code true} when {@code /AP/N} is a dictionary (multi-state), |
| {@code false} when it is a stream (single-state) or absent. | |
getPdfDictionary() → PdfDictionary | Returns the underlying /AP PDF dictionary for engine-side use. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise