FileAttachmentAnnotation

FileAttachmentAnnotation

ภาพรวม

FileAttachmentAnnotation คือคลาสใน Aspose.PDF FOSS สำหรับ TypeScript. สืบทอดจาก: Annotation.

การระบุ /FileAttachment: ไอคอนบนหน้า ซึ่ง /FS ฝังไฟล์.

คลาสนี้ประกาศ 3 วิธีสำหรับอ็อบเจ็กต์ FileAttachmentAnnotation ในโปรแกรม TypeScript. วิธีที่มีให้รวมถึง: Flatten, GetBytes, constructor. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้โดยแอปพลิเคชัน TypeScript ใดๆ หลังจากติดตั้งแพคเกจ Aspose.PDF FOSS สำหรับ TypeScript. คุณสมบัติ: Color, Contents, Description, FileName, Flags, Hidden และอีก 8 รายการ.

คุณสมบัติ

ชื่อประเภทการเข้าถึงคำอธิบาย
Iconstringอ่าน/เขียนรับไอคอน.
FileNamestringอ่านรับชื่อไฟล์.
Description`stringundefined`อ่าน
Subtypestringอ่านรับค่าชนิดย่อย.
Rect`[number, number, number, number]undefined`อ่าน/เขียน
Color`[number, number, number]undefined`อ่าน/เขียน
Contents`stringundefined`อ่าน/เขียน
Name`stringundefined`อ่าน/เขียน
Layer`Layerundefined`อ่าน/เขียน
ModDate`Datestringundefined`
Flagsnumberอ่าน/เขียนรับค่าสถานะ.
Printbooleanอ่าน/เขียนรับค่า print.
Hiddenbooleanอ่าน/เขียนรับค่า hidden.
Opacity`numberundefined`อ่าน/เขียน

วิธีการ

ลายเซ็นคำอธิบาย
GetBytes() → Uint8Arrayถอดรหัสไบต์ที่ฝังอยู่.
constructor(doc: Document, Dict: PdfDict)เรียกคอนสตรัคเตอร์(doc, Dict) บนอินสแตนซ์ FileAttachmentAnnotation นี้.
Flatten() → booleanฝังคำอธิบายนี้ลงในเนื้อหาหน้าคงที่เท่านั้น: วาด /AP /N ลักษณะของมันลงใน /Contents ของหน้า ณ /Rect ของมันและลบออกจาก /Annots.
 ภาษาไทย