FreeTextAnnotation
FreeTextAnnotation
Przegląd
FreeTextAnnotation jest typem w Aspose.PDF FOSS dla Go. Dziedziczy po: drawingAnnotationBase.
FreeTextAnnotation wyświetla tekst bezpośrednio na stronie, renderowany do /AP/N przy użyciu wbudowanej czcionki.
Ten typ udostępnia 18 metod do pracy z obiektami FreeTextAnnotation w programach Go. Dostępne metody to: AnnotationType, BorderEffect, BorderEffectIntensity, CalloutPoints, Contents, EndLineEnding, InnerRect, Intent, RegenerateAppearance, SetBorderEffect, SetBorderEffectIntensity, SetCalloutPoints oraz 6 dodatkowych metod. Wszystkie publiczne elementy są dostępne dla każdej aplikacji Go po zainstalowaniu pakietu Aspose.PDF FOSS dla Go.
Metody
| Sygnatura | Opis |
|---|---|
AnnotationType() → AnnotationType | Zwraca typ adnotacji. |
Contents() → string | Contents zwraca ciało tekstu /Contents. |
SetContents(s: string) | SetContents zapisuje /Contents i regeneruje /AP/N (renderowana treść tekstu zależy od Contents). |
TextStyle() → TextStyle | TextStyle zwraca styl tekstu odtworzony z /DA + /Q + /BG. |
SetTextStyle(s: TextStyle) | SetTextStyle zapisuje styl jako /DA + /Q + /BG i regeneruje /AP/N. |
Intent() → FreeTextIntent | Intent zwraca wpis /IT powiązany z FreeTextIntent. |
SetIntent(i: FreeTextIntent) | SetIntent zapisuje wpis /IT. |
RegenerateAppearance() | RegenerateAppearance wymusza odbudowę /AP/N z bieżącego stanu. |
CalloutPoints() → []Point | CalloutPoints zwraca punkty kolana + punkt końcowy /CL (przestrzeń strony). |
SetCalloutPoints(pts: []Point) | SetCalloutPoints zapisuje /CL (musi mieć 2 lub 3 punkty; w przeciwnym razie wywołanie jest no-op). |
EndLineEnding() → LineEndingStyle | EndLineEnding zwraca wpis /LE jako LineEndingStyle. |
SetEndLineEnding(s: LineEndingStyle) | SetEndLineEnding zapisuje /LE dla kształtu punktu końcowego wywołania. |
InnerRect() → Rectangle | InnerRect zwraca wewnętrzny prostokąt tekstowy wyprowadzony z wpisu /RD. |
SetInnerRect(inner: Rectangle) | SetInnerRect zapisuje /RD obliczone jako różnica pomiędzy zewnętrznym /Rect a podanym wewnętrznym prostokątem (przestrzeń strony). |
BorderEffect() → BorderEffect | BorderEffect zwraca wpis /BE/S jako BorderEffect. |
SetBorderEffect(e: BorderEffect) | SetBorderEffect zapisuje /BE/S. |
BorderEffectIntensity() → float64 | BorderEffectIntensity zwraca wpis /BE/I. |
SetBorderEffectIntensity(i: float64) | SetBorderEffectIntensity zapisuje /BE/I (intensywność chmur, zazwyczaj 0-2). |