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

SygnaturaOpis
AnnotationType() → AnnotationTypeZwraca typ adnotacji.
Contents() → stringContents zwraca ciało tekstu /Contents.
SetContents(s: string)SetContents zapisuje /Contents i regeneruje /AP/N (renderowana treść tekstu zależy od Contents).
TextStyle() → TextStyleTextStyle zwraca styl tekstu odtworzony z /DA + /Q + /BG.
SetTextStyle(s: TextStyle)SetTextStyle zapisuje styl jako /DA + /Q + /BG i regeneruje /AP/N.
Intent() → FreeTextIntentIntent 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() → []PointCalloutPoints 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() → LineEndingStyleEndLineEnding zwraca wpis /LE jako LineEndingStyle.
SetEndLineEnding(s: LineEndingStyle)SetEndLineEnding zapisuje /LE dla kształtu punktu końcowego wywołania.
InnerRect() → RectangleInnerRect 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() → BorderEffectBorderEffect zwraca wpis /BE/S jako BorderEffect.
SetBorderEffect(e: BorderEffect)SetBorderEffect zapisuje /BE/S.
BorderEffectIntensity() → float64BorderEffectIntensity zwraca wpis /BE/I.
SetBorderEffectIntensity(i: float64)SetBorderEffectIntensity zapisuje /BE/I (intensywność chmur, zazwyczaj 0-2).

Zobacz także

 Polski