FileAttachmentAnnotation
FileAttachmentAnnotation
개요
FileAttachmentAnnotation은(는) Go용 Aspose.PDF FOSS의 타입입니다. 상속 대상: annotationBase.
FileAttachmentAnnotation은(는) 문서에 파일을 삽입하고 주석의 /Rect 위치에 아이콘을 표시합니다.
이 타입은 Go 프로그램에서 FileAttachmentAnnotation 객체를 다루기 위한 13개의 메서드를 제공합니다. 사용 가능한 메서드에는 AnnotationType, FileBytes, FileDescription, FileMIMEType, FileName, FileSize, HasFile, Icon, RegenerateAppearance, SetFile, SetFileDescription, SetFileFromStream 및 추가 메서드 1개가 포함됩니다. Aspose.PDF FOSS for Go 패키지를 설치한 후 모든 공개 멤버는 모든 Go 애플리케이션에서 접근할 수 있습니다.
메서드
| 시그니처 | 설명 |
|---|---|
AnnotationType() → AnnotationType | 주석 유형을 반환합니다. |
Icon() → FileAttachmentIcon | Icon은 FileAttachmentIcon에 매핑된 /Name 항목을 반환합니다. |
SetIcon(i: FileAttachmentIcon) | SetIcon은 /Name 항목을 씁니다. |
HasFile() → bool | HasFile은 SetFile 또는 SetFileFromStream가 성공적으로 호출되고 이후에 지워지지 않은 경우 true를 반환합니다. |
RegenerateAppearance() | RegenerateAppearance은 FileAttachmentAnnotation에 대한 no-op입니다 (no /AP — 뷰어가 아이콘을 직접 렌더링합니다). |
SetFile(path: string) → error | SetFile은 경로에 있는 파일을 주석의 첨부 파일로 포함합니다. |
SetFileFromStream(r: io.Reader, name: string) → error | SetFileFromStream은 SetFile의 io.Reader 변형입니다. |
FileName() → string | FileName은 /Filespec/F에서 표시되는 파일 이름을 반환합니다. |
FileMIMEType() → string | FileMIMEType은 /EmbeddedFile의 /Subtype을 반환합니다 (예: |
FileSize() → int | FileSize은 포함된 파일의 크기를 바이트 단위로 반환합니다. |
FileBytes() → []byte | FileBytes은 포함된 파일의 원시 바이트에 대한 방어적 복사본을 반환합니다. |
FileDescription() → string | FileDescription은 /Filespec/Desc를 반환합니다. |
SetFileDescription(s: string) | SetFileDescription가 /Filespec/Desc를 작성합니다. |