FreeTextAnnotation
FreeTextAnnotation
개요
FreeTextAnnotation은(는) Go용 Aspose.PDF FOSS의 타입입니다. 상속 대상: drawingAnnotationBase.
FreeTextAnnotation은(는) 페이지에 텍스트를 직접 표시하며, 임베디드 폰트를 사용해 /AP/N에 렌더링됩니다.
이 타입은 Go 프로그램에서 FreeTextAnnotation 객체를 다루기 위한 18개의 메서드를 제공합니다. 사용 가능한 메서드에는 AnnotationType, BorderEffect, BorderEffectIntensity, CalloutPoints, Contents, EndLineEnding, InnerRect, Intent, RegenerateAppearance, SetBorderEffect, SetBorderEffectIntensity, SetCalloutPoints 및 추가 6개의 메서드가 포함됩니다. Aspose.PDF FOSS for Go 패키지를 설치한 후 모든 공개 멤버는 모든 Go 애플리케이션에서 접근할 수 있습니다.
메서드
| 시그니처 | 설명 |
|---|---|
AnnotationType() → AnnotationType | 주석 유형을 반환합니다. |
Contents() → string | Contents는 /Contents 텍스트 본문을 반환합니다. |
SetContents(s: string) | SetContents는 /Contents를 기록하고 /AP/N을 다시 생성합니다 (렌더링된 텍스트 내용은 Contents에 따라 달라집니다). |
TextStyle() → TextStyle | TextStyle는 /DA + /Q + /BG에서 재구성된 텍스트 스타일을 반환합니다. |
SetTextStyle(s: TextStyle) | SetTextStyle은 스타일을 /DA + /Q + /BG 로 작성하고 /AP/N을(를) 재생성합니다. |
Intent() → FreeTextIntent | Intent는 FreeTextIntent에 매핑된 /IT 항목을 반환합니다. |
SetIntent(i: FreeTextIntent) | SetIntent은 /IT 항목을 기록합니다. |
RegenerateAppearance() | RegenerateAppearance은 현재 상태에서 /AP/N이(가) 다시 빌드되도록 강제합니다. |
CalloutPoints() → []Point | CalloutPoints은 /CL 무릎 + 끝점 포인트를 반환합니다 (페이지 공간). |
SetCalloutPoints(pts: []Point) | SetCalloutPoints은 /CL을 씁니다 (2점 또는 3점이어야 합니다; 그렇지 않으면 호출은 no-op입니다). |
EndLineEnding() → LineEndingStyle | EndLineEnding은 /LE 엔트리를 LineEndingStyle로 반환합니다. |
SetEndLineEnding(s: LineEndingStyle) | SetEndLineEnding은 호출 엔드포인트 형태를 위해 /LE을 씁니다. |
InnerRect() → Rectangle | InnerRect는 /RD 항목에서 파생된 내부 텍스트 사각형을 반환합니다. |
SetInnerRect(inner: Rectangle) | SetInnerRect는 외부 /Rect와 제공된 내부 rect(페이지 공간) 사이의 차이에서 계산된 /RD를 기록합니다. |
BorderEffect() → BorderEffect | BorderEffect는 /BE/S 항목을 BorderEffect으로 반환합니다. |
SetBorderEffect(e: BorderEffect) | SetBorderEffect는 /BE/S을 기록합니다. |
BorderEffectIntensity() → float64 | BorderEffectIntensity는 /BE/I 항목을 반환합니다. |
SetBorderEffectIntensity(i: float64) | SetBorderEffectIntensity writes /BE/I (구름 강도, 일반적으로 0-2). |