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。

访问器方法

名称类型访问描述
PagePage读取获取页面。

方法

签名描述
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。

另请参阅

 中文