FreeTextAnnotation
Vue de l’ensemble
‘FreeTextAnnotation’ est un type dans Aspose.PDF FOSS pour Go.
FreeTextAnnotation affiche le texte directement sur la page, rendu en /AP/N à l’aide d’un phon intégré.
Ce type fournit 18 méthodes pour travailler avec les objets FreeTextAnnotation dans les programmes Go. Les méthodologies disponibles comprennent: AnnotageType, BorderEffect , StorgeEfectIntensité ‘CalloutPointsetContents & EndLineEnding', 'InnerRect' et 'Intent ; ‘RegenerateAppearance’, ’SetBordeEeffect’, ‘SetborderÉfecteIntenser`; et 6 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Go après l’installation de l’Asspose.PDF FOSS pour le package Go .
méthodes
| Signature | Description |
|---|---|
AnnotationType() → AnnotationType | Returns the annotation type. |
Contents() → string | Contents returns the /Contents text body. |
SetContents(s: string) | SetContents writes /Contents and regenerates /AP/N (the rendered text content depends on Contents). |
TextStyle() → TextStyle | TextStyle returns the text style reconstructed from /DA + /Q + /BG. |
SetTextStyle(s: TextStyle) | SetTextStyle writes the style as /DA + /Q + /BG and regenerates /AP/N. |
Intent() → FreeTextIntent | Intent returns the /IT entry mapped to a FreeTextIntent. |
SetIntent(i: FreeTextIntent) | SetIntent writes the /IT entry. |
RegenerateAppearance() | RegenerateAppearance forces /AP/N to be rebuilt from current state. |
CalloutPoints() → []Point | CalloutPoints returns the /CL knee + endpoint points (page space). |
SetCalloutPoints(pts: []Point) | SetCalloutPoints writes /CL (must be 2 or 3 points; otherwise the call is a no-op). |
EndLineEnding() → LineEndingStyle | EndLineEnding returns the /LE entry as a LineEndingStyle. |
SetEndLineEnding(s: LineEndingStyle) | SetEndLineEnding writes /LE for the callout endpoint shape. |
InnerRect() → Rectangle | InnerRect returns the inner text rectangle derived from /RD entry. |
SetInnerRect(inner: Rectangle) | SetInnerRect writes /RD computed from the difference between the outer /Rect and the supplied inner rect (page-space). |
BorderEffect() → BorderEffect | BorderEffect returns the /BE/S entry as a BorderEffect. |
SetBorderEffect(e: BorderEffect) | SetBorderEffect writes /BE/S. |
BorderEffectIntensity() → float64 | BorderEffectIntensity returns the /BE/I entry. |
SetBorderEffectIntensity(i: float64) | SetBorderEffectIntensity writes /BE/I (cloud intensity, typically 0-2). |
Voir aussi
- Aspose.PDF — Résultats de l’API d’entreprise