PdfFileInfo
ภาพรวม
PdfFileInfo เป็นคลาสใน Aspose.PDF FOSS สำหรับ C++.
PdfFileInfo มี getter และ setter สำหรับฟิลด์เมตาดาทามาตรฐาน เช่น Author, Creator, และคีย์ที่กำหนดเองผ่าน GetMetaInfo(name) และ SetMetaInfo(name, value).
คลาสนี้มีเมธอด 39 รายการสำหรับทำงานกับอ็อบเจกต์ PdfFileInfo ในโปรแกรม C++ มีเมธอดที่ใช้ได้รวมถึง: Author, BindPdf, ClearInfo, CreationDate, Creator, GetMetaInfo, GetPageHeight, GetPageRotation, GetPageWidth, GetPageXOffset, GetPageYOffset, GetPdfVersion และเมธอดเพิ่มเติมอีก 18 รายการ สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้จากแอปพลิเคชัน C++ ใด ๆ หลังจากติดตั้งแพคเกจ Aspose.PDF FOSS สำหรับ C++.
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
PdfFileInfo() | เรียกใช้ PdfFileInfo บนอินสแตนซ์ PdfFileInfo นี้. |
BindPdf(srcDoc: Aspose::Pdf::Document) | เรียกใช้ BindPdf(srcDoc) บนอินสแตนซ์ PdfFileInfo นี้. |
ClearInfo() | เรียกใช้ ClearInfo บนอินสแตนซ์ PdfFileInfo นี้. |
GetMetaInfo(name: std::string) → std::string | เรียกใช้ GetMetaInfo(name) บนอินสแตนซ์ PdfFileInfo นี้. |
SetMetaInfo(name: std::string, value: std::string) | ตั้งค่าค่าข้อมูลเมตา. |
GetPageHeight(pageNum: int) → float | เรียก GetPageHeight(pageNum) บนอินสแตนซ์ PdfFileInfo นี้. |
GetPageRotation(pageNum: int) → float | เรียก GetPageRotation(pageNum) บนอินสแตนซ์ PdfFileInfo นี้. |
GetPageWidth(pageNum: int) → float | เรียก GetPageWidth(pageNum) บนอินสแตนซ์ PdfFileInfo นี้. |
GetPageXOffset(pageNum: int) → float | เรียก GetPageXOffset(pageNum) บนอินสแตนซ์ PdfFileInfo นี้. |
GetPageYOffset(pageNum: int) → float | เรียก GetPageYOffset(pageNum) บนอินสแตนซ์ PdfFileInfo นี้. |
GetPdfVersion() → std::string | ส่งคืนเวอร์ชัน pdf. |
SaveNewInfo(outputFile: std::string) → bool | เรียก SaveNewInfo(outputFile) บนอินสแตนซ์ PdfFileInfo นี้. |
SaveNewInfoWithXmp(outputFileName: std::string) → bool | เรียก SaveNewInfoWithXmp(outputFileName) บนอินสแตนซ์ PdfFileInfo นี้. |
Author() → std::string | เรียก Author บนอินสแตนซ์ PdfFileInfo นี้. |
Author(value: std::string) | เรียก Author(value) บนอินสแตนซ์ PdfFileInfo นี้. |
CreationDate() → std::string | เรียก CreationDate บนอินสแตนซ์ PdfFileInfo นี้. |
CreationDate(value: std::string) | เรียก CreationDate(value) บนอินสแตนซ์ PdfFileInfo นี้. |
Creator() → std::string | เรียก Creator บนอินสแตนซ์ PdfFileInfo นี้. |
Creator(value: std::string) | เรียก Creator(value) บนอินสแตนซ์ PdfFileInfo นี้. |
Keywords() → std::string | เรียก Keywords บนอินสแตนซ์ PdfFileInfo นี้. |
Keywords(value: std::string) | เรียก Keywords(value) บนอินสแตนซ์ PdfFileInfo นี้. |
ModDate() → std::string | เรียก ModDate บนอินสแตนซ์ PdfFileInfo นี้. |
ModDate(value: std::string) | เรียก ModDate(value) บนอินสแตนซ์ PdfFileInfo นี้. |
Producer() → std::string | เรียก Producer บนอินสแตนซ์ PdfFileInfo นี้. |
Subject() → std::string | เรียก Subject บนอินสแตนซ์ PdfFileInfo นี้. |
Subject(value: std::string) | เรียก Subject(value) บนอินสแตนซ์ PdfFileInfo นี้. |
Title() → std::string | เรียก Title บนอินสแตนซ์ PdfFileInfo นี้. |
Title(value: std::string) | เรียก Title(value) บนอินสแตนซ์ PdfFileInfo นี้. |
IsEncrypted() → bool | คืนค่า true หาก encrypted ถูกตั้งค่า. |
IsPdfFile() → bool | คืนค่า true หากไฟล์ pdf ถูกตั้งค่า. |
UseStrictValidation() → bool | เรียก UseStrictValidation บนอินสแตนซ์ PdfFileInfo นี้. |
UseStrictValidation(value: bool) | เรียก UseStrictValidation(value) บนอินสแตนซ์ PdfFileInfo นี้. |
HasCollection() → bool | คืนค่า true หากมีคอลเลกชัน. |
InputFile() → std::string | เรียก InputFile บนอินสแตนซ์ PdfFileInfo นี้. |
InputFile(value: std::string) | เรียก InputFile(value) บนอินสแตนซ์ PdfFileInfo นี้. |
NumberOfPages() → int | เรียก NumberOfPages บนอินสแตนซ์ PdfFileInfo นี้. |
PasswordType() → Aspose::Pdf::PasswordType | เรียก PasswordType บนอินสแตนซ์ PdfFileInfo นี้. |
HasOpenPassword() → bool | คืนค่า true หากมีรหัสผ่านเปิดอยู่. |
HasEditPassword() → bool | คืนค่า true หากมีรหัสผ่านแก้ไข. |