FreeTextAnnotation

FreeTextAnnotation

Približni podaci

FreeTextAnnotation je tip u Aspose.PDF FOSS za Go.

FreeTextAnnotation prikazuje tekst izravno na stranici, renderiran u /AP/N koristeći ugrađeni font.

Ovaj tip pruža 18 metoda za rad s FreeTextAnnotation objektima u programima Go. Postoje i sljedeće metode: AnnotationType, BorderEffect, BorderEffectIntensity, CalloutPoints, Contents, EndLineEnding, InnerRect, Intent, RegenerateAppearance, SetBorderEffect, SetBorderEffectIntensity, SetCalloutPoints, i 6 dodatnih metoda. Svi javni članovi su dostupni bilo kojoj aplikaciji Go nakon instaliranja paketa Aspose.PDF FOSS za Go.

Metoda za primjenu

PotpisOpisivanje
AnnotationType()AnnotationTypeVrati tip opisa.
Contents()stringSadržaj vraća tekst /Sadržavam.
SetContents(s: string)SetContents piše /Contents i regeneriše /AP/N (prikazan tekst zavisi od Contents).
TextStyle()TextStyleTextStyle vraća tekstni stil rekonstruiran iz /DA + /Q +/BG.
SetTextStyle(s: TextStyle)SetTextStyle piše stil kao /DA + /Q +/BG i regeneriše /AP/N.
Intent()FreeTextIntentIntent vraća /IT unos mapiran na FreeTextIntent.
SetIntent(i: FreeTextIntent)SetIntent piše /IT zapis.
RegenerateAppearance()RegenerateAppearance primorava /AP/N da se obnovi iz trenutnog stanja.
CalloutPoints()[]PointCalloutPoints vraća /CL koljeno + krajnje točke (prostor stranice).
SetCalloutPoints(pts: []Point)SetCalloutPoints piše /CL (mora biti 2 ili 3 točke; inače poziv je no-op).
EndLineEnding()LineEndingStyleEndLineEnding vraća /LE unos kao LineEndingStyle.
SetEndLineEnding(s: LineEndingStyle)SetEndLineEnding piše /LE za oblik krajnje točke poziva.
InnerRect()RectangleInnerRect vraća unutarnji tekst pravougaon koji je izveden iz unosa /RD.
SetInnerRect(inner: Rectangle)SetInnerRect piše /RD izračunan iz razlike između vanjskog /Rect i isporučenog unutarnjeg rect (stranica-prostor).
BorderEffect()BorderEffectBorderEffect vraća /BE/S unos kao BorderEffect.
SetBorderEffect(e: BorderEffect)SetBorderEffect piše /BE/S.
BorderEffectIntensity()float64BorderEffectIntensity vraća /BE/I unos.
SetBorderEffectIntensity(i: float64)SetBorderEffectIntensity piše /BE/I (intenzitet oblaka, obično 0-2).

Također pogledajte:

 Hrvatski