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 หากมีรหัสผ่านแก้ไข.

ดูเพิ่มเติม

 ภาษาไทย