FreeTextAnnotation
FreeTextAnnotation
Panoramica
FreeTextAnnotation è un tipo in Aspose.PDF FOSS per Go. Eredita da: drawingAnnotationBase.
FreeTextAnnotation visualizza il testo direttamente sulla pagina, renderizzato in /AP/N usando un font incorporato.
Questo tipo fornisce 18 metodi per lavorare con oggetti FreeTextAnnotation nei programmi Go. I metodi disponibili includono: AnnotationType, BorderEffect, BorderEffectIntensity, CalloutPoints, Contents, EndLineEnding, InnerRect, Intent, RegenerateAppearance, SetBorderEffect, SetBorderEffectIntensity, SetCalloutPoints, e 6 metodi aggiuntivi. Tutti i membri pubblici sono accessibili a qualsiasi applicazione Go dopo aver installato il pacchetto Aspose.PDF FOSS per Go.
Metodi
| Firma | Descrizione |
|---|---|
AnnotationType() → AnnotationType | Restituisce il tipo di annotazione. |
Contents() → string | Contents restituisce il corpo di testo /Contents. |
SetContents(s: string) | SetContents scrive /Contents e rigenera /AP/N (il contenuto di testo renderizzato dipende da Contents). |
TextStyle() → TextStyle | TextStyle restituisce lo stile di testo ricostruito da /DA + /Q + /BG. |
SetTextStyle(s: TextStyle) | SetTextStyle scrive lo stile come /DA + /Q + /BG e rigenera /AP/N. |
Intent() → FreeTextIntent | Intent restituisce la voce /IT associata a un FreeTextIntent. |
SetIntent(i: FreeTextIntent) | SetIntent scrive la voce /IT. |
RegenerateAppearance() | RegenerateAppearance forza /AP/N a essere ricostruito dallo stato attuale. |
CalloutPoints() → []Point | CalloutPoints restituisce i punti ginocchio + endpoint /CL (spazio pagina). |
SetCalloutPoints(pts: []Point) | SetCalloutPoints scrive /CL (deve essere 2 o 3 punti; altrimenti la chiamata è un no-op). |
EndLineEnding() → LineEndingStyle | EndLineEnding restituisce l’entry /LE come un LineEndingStyle. |
SetEndLineEnding(s: LineEndingStyle) | SetEndLineEnding scrive /LE per la forma del punto finale callout. |
InnerRect() → Rectangle | InnerRect restituisce il rettangolo di testo interno derivato dall’entry /RD. |
SetInnerRect(inner: Rectangle) | SetInnerRect scrive /RD calcolato dalla differenza tra il /Rect esterno e il rettangolo interno fornito (spazio pagina). |
BorderEffect() → BorderEffect | BorderEffect restituisce l’entry /BE/S come BorderEffect. |
SetBorderEffect(e: BorderEffect) | SetBorderEffect scrive /BE/S. |
BorderEffectIntensity() → float64 | BorderEffectIntensity restituisce la voce /BE/I. |
SetBorderEffectIntensity(i: float64) | SetBorderEffectIntensity scrive /BE/I (intensità nuvolosa, tipicamente 0-2). |