Page
概述
Page 是 Aspose.PDF 为 C++ 提供的 FOSS 中的一个类。
页面标签(例如罗马数字、自定义前缀)通过 PageLabel 和 PageLabelCollection 类进行管理。
此类提供了 28 个用于在 C++ 程序中操作 Page 对象的方法。可用的方法包括:AddImage、Annotations、ArtBox、Artifacts、BleedBox、CropBox、GetPageRect、MediaBox、Number、Page、Paragraphs、Rect,以及另外 5 个方法。安装 Aspose.PDF FOSS for C++ 包后,所有公共成员对任何 C++ 应用程序均可访问。访问器方法:Page。
访问器方法
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Page | Page | 读取 | 获取页面。 |
方法
| 签名 | 描述 |
|---|---|
Page() → Page | 在此 Page 实例上调用 Page。 |
Page() → Page | |
Page() | |
Page() | |
~Page() | 在此 Page 实例上调用 ~Page。 |
Number() → std::int64_t | 在此 Page 实例上调用 Number。 |
Rect() → Rectangle | 在此 Page 实例上调用 Rect。 |
Rect(value: Rectangle) | 在此 Page 实例上调用 Rect(value)。 |
MediaBox() → Rectangle | 在此 Page 实例上调用 MediaBox。 |
MediaBox(value: Rectangle) | 在此 Page 实例上调用 MediaBox(value)。 |
CropBox() → Rectangle | 在此 Page 实例上调用 CropBox。 |
CropBox(value: Rectangle) | 在此 Page 实例上调用 CropBox(value)。 |
TrimBox() → Rectangle | 在此 Page 实例上调用 TrimBox。 |
TrimBox(value: Rectangle) | 在此 Page 实例上调用 TrimBox(value)。 |
BleedBox() → Rectangle | 在此 Page 实例上调用 BleedBox。 |
BleedBox(value: Rectangle) | 在此 Page 实例上调用 BleedBox(value)。 |
ArtBox() → Rectangle | 在此 Page 实例上调用 ArtBox。 |
ArtBox(value: Rectangle) | 在此 Page 实例上调用 ArtBox(value)。 |
Rotate() → Rotation | 在此 Page 实例上调用 Rotate。 |
Rotate(value: Rotation) | 在此 Page 实例上调用 Rotate(value)。 |
GetPageRect(isMediaBox: bool) → Rectangle | 在此 Page 实例上调用 GetPageRect(isMediaBox)。 |
SetPageSize(width: double, height: double) | 设置页面大小值。 |
AddImage(imageFile: std::string, rect: Rectangle) → bool | 在此 Page 实例上调用 AddImage(imageFile, rect)。 |
AddImage(imageStream: std::vector<std::byte>, imageRect: Rectangle, autoAdjustRectangle: bool) | 在此 Page 实例上调用 AddImage(imageStream, imageRect, autoAdjustRectangle)。 |
Annotations() → Annotations::AnnotationCollection | 在此 Page 实例上调用 Annotations。 |
Paragraphs() → Aspose::Pdf::Paragraphs | 在此 Page 实例上调用 Paragraphs。 |
Resources() → Aspose::Pdf::Resources | 在此 Page 实例上调用 Resources。 |
Artifacts() → Aspose::Pdf::ArtifactCollection | 在此 Page 实例上调用 Artifacts。 |