FileAttachmentAnnotation
المعلومات العامة
FileAttachmentAnnotation هو نوع في Aspose.PDF FOSS ل Go.
FileAttachmentAnnotation يضيف ملف في المستند ويعرض رمزًا عند / Rect للتعليق.
يوفر هذا النوع 13 طريقة للعمل مع FileAttachmentAnnotation كائنات في برامج Go. المنهجيات المتاحة تشمل: AnnotationType, FileBytes, FileDescription, FileMIMEType, FileName, FileSize, HasFile, Icon, RegenerateAppearance, SetFile, SetFileDescription, SetFileFromStream,، و 1 طرق إضافية. جميع أعضاء الجمهور يمكن الوصول إليهم من أي تطبيق Go بعد تثبيت حزمة Aspose.PDF FOSS for Go.
الطرق
| التوقيع | وصف |
|---|---|
AnnotationType() → AnnotationType | يعيد نوع التعليقات. |
Icon() → FileAttachmentIcon | الرمز يعيد إدخال /Name المترتبة إلى FileAttachmentIcon. |
SetIcon(i: FileAttachmentIcon) | SetIcon يكتب / اسم الإدخال. |
HasFile() → bool | HasFile يعود true إذا تم استدعاء SetFile أو SetFileFromStream بنجاح ولم يتم التنظيف لاحقاً. |
RegenerateAppearance() | RegenerateAppearance هو no-op لFileAttachmentAnnotation (لا / AP المشاهدين يعرضون الرمز بأنفسهم). |
SetFile(path: string) → error | SetFile يضمن الملف في المسار كملحق للملاحظة. |
SetFileFromStream(r: io.Reader, name: string) → error | SetFileFromStream هو متغير io.Reader من SetFile. |
FileName() → string | FileName يعيد اسم الملف المعروض من / Filespec/F. |
FileMIMEType() → string | يعيد FileMIMEType النوع الفرعي / على /EmbeddedFile (مثل:. |
FileSize() → int | FileSize يعيد حجم الملف المضمن في بايت. |
FileBytes() → []byte | FileBytes يعيد نسخة دفاعية من الملفات الخام. |
FileDescription() → string | FileDescription يعود / Filespec/Desc. |
SetFileDescription(s: string) | SetFileDescription يكتب / Filespec/Desc. |