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ênKiểuTruy cậpMô tả
DocumentDocumentĐọcLấy tài liệu.

Phương thức

Chữ kýMô tả
Document() → DocumentGọi Document trên đối tượng Document này.
IsEncrypted() → boolTrả 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() → intGọ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() → DocumentInfoGọi Info trên đối tượng Document này.
Metadata() → Aspose::Pdf::MetadataGọi Metadata trên đối tượng Document này.
Pages() → PageCollectionGọi Pages trên đối tượng Document này.
EmbeddedFiles() → EmbeddedFileCollectionGọi EmbeddedFiles trên đối tượng Document này.
NamedDestinations() → NamedDestinationCollectionGọi NamedDestinations trên đối tượng Document này.
Outlines() → OutlineCollectionGọi Outlines trên đối tượng Document này.
PageLabels() → PageLabelCollectionGọi PageLabels trên đối tượng Document này.
Form() → Aspose::Pdf::Forms::FormGọi Form trên đối tượng Document này.

Xem thêm

 Tiếng Việt