Document
Tổng quan
Document là một lớp trong Aspose.PDF FOSS cho C++.
Siêu dữ liệu tài liệu có thể được đọc thông qua Document.Info() và các phương thức truy cập Title(), Author(), Creator(), Producer(), Subject() và Keywords().
Lớp này cung cấp 22 phương thức để làm việc với các đối tượng Document trong các chương trình C++. Các phương thức khả dụng bao gồm: Decrypt, Document, EmbeddedFiles, Encrypt, Form, Info, IsEncrypted, Metadata, NamedDestinations, Optimize, OptimizeResources, Outlines, và 5 phương thức bổ sung. Tất cả các thành viên công khai đều có thể truy cập bởi bất kỳ ứng dụng C++ nào sau khi cài đặt gói Aspose.PDF FOSS cho C++. Các phương thức truy cập: Document.
Phương thức truy cập
| Tên | Kiểu | Truy cập | Mô tả |
|---|---|---|---|
Document | Document | Đọc | Lấy tài liệu. |
Phương thức
| Chữ ký | Mô tả |
|---|---|
Document() → Document | Gọi Document trên đối tượng Document này. |
IsEncrypted() → bool | Trả về true nếu encrypted được thiết lập. |
Encrypt(userPassword: std::string, ownerPassword: std::string, permissions: Aspose::Pdf::Permissions, cryptoAlgorithm: CryptoAlgorithm) | Gọi Encrypt(userPassword, ownerPassword, permissions, cryptoAlgorithm) trên đối tượng Document này. |
Encrypt(userPassword: std::string, ownerPassword: std::string, permissions: Aspose::Pdf::Permissions, cryptoAlgorithm: CryptoAlgorithm, usePdf20: bool) | Gọi Encrypt(userPassword, ownerPassword, permissions, cryptoAlgorithm, usePdf20) trên đối tượng Document này. |
Permissions() → int | Gọi Permissions trên đối tượng Document này. |
Optimize() | Gọi Optimize trên đối tượng Document này. |
OptimizeResources() | Gọi OptimizeResources trên đối tượng Document này. |
Encrypt(userPassword: std::string, ownerPassword: std::string, privileges: Aspose::Pdf::Facades::DocumentPrivilege, cryptoAlgorithm: CryptoAlgorithm) | Gọi Encrypt(userPassword, ownerPassword, privileges, cryptoAlgorithm) trên đối tượng Document này. |
Encrypt(userPassword: std::string, ownerPassword: std::string, privileges: Aspose::Pdf::Facades::DocumentPrivilege, cryptoAlgorithm: CryptoAlgorithm, usePdf20: bool) | Gọi Encrypt(userPassword, ownerPassword, privileges, cryptoAlgorithm, usePdf20) trên đối tượng Document này. |
Decrypt() | Gọi Decrypt trên đối tượng Document này. |
Document() | |
Save(outputFileName: std::string) | Gọi Save(outputFileName) trên đối tượng Document này. |
Save() | |
SetTitle(title: std::string) | Đặt giá trị tiêu đề. |
Info() → DocumentInfo | Gọi Info trên đối tượng Document này. |
Metadata() → Aspose::Pdf::Metadata | Gọi Metadata trên đối tượng Document này. |
Pages() → PageCollection | Gọi Pages trên đối tượng Document này. |
EmbeddedFiles() → EmbeddedFileCollection | Gọi EmbeddedFiles trên đối tượng Document này. |
NamedDestinations() → NamedDestinationCollection | Gọi NamedDestinations trên đối tượng Document này. |
Outlines() → OutlineCollection | Gọi Outlines trên đối tượng Document này. |
PageLabels() → PageLabelCollection | Gọi PageLabels trên đối tượng Document này. |
Form() → Aspose::Pdf::Forms::Form | Gọi Form trên đối tượng Document này. |