PdfFileStamp

PdfFileStamp

概述

PdfFileStamp 是 Aspose.PDF FOSS for C++ 中的类。

此类提供 26 个用于在 C++ 程序中处理 PdfFileStamp 对象的方法。可用的方法包括:AddFooter、AddHeader、AddPageNumber、ConvertTo、InputFile、KeepSecurity、OptimizeSize、OutputFile、PageHeight、PageNumberRotation、PageWidth、PdfFileStamp,以及另外 2 个方法。所有公共成员在安装 Aspose.PDF FOSS for C++ 包后,任何 C++ 应用程序均可访问。访问器方法:PosBottomLeft、PosBottomMiddle、PosBottomRight、PosSidesLeft、PosSidesRight、PosUpperLeft,以及另外 2 个。

访问器方法

名称类型访问描述
PosBottomMiddleint读写获取或设置底部中间位置。
PosBottomRightint读写获取或设置 pos bottom right。
PosUpperRightint读写获取或设置 pos upper right。
PosSidesRightint读写获取或设置右侧位置。
PosUpperMiddleint读写获取或设置上部中间位置。
PosBottomLeftint读写获取或设置左下角的位置。
PosSidesLeftint读写获取或设置位置的左侧。
PosUpperLeftint读写获取或设置左上角位置。

方法

签名描述
PdfFileStamp()在此 PdfFileStamp 实例上调用 PdfFileStamp。
AddPageNumber(format: std::string)在此 PdfFileStamp 实例上调用 AddPageNumber(format)。
AddPageNumber(format: std::string, startingNumber: int)在此 PdfFileStamp 实例上调用 AddPageNumber(format, startingNumber)。
AddPageNumber(format: std::string, left: float, top: float)在此 PdfFileStamp 实例上调用 AddPageNumber(format, left, top)。
AddPageNumber(format: std::string, startingNumber: int, llx: float, lly: float, urx: float, ury: float)在此 PdfFileStamp 实例上调用 AddPageNumber(format, startingNumber, llx, lly, urx, ury)。
AddHeader(text: std::string, topMargin: float)在此 PdfFileStamp 实例上调用 AddHeader(text, topMargin)。
AddHeader(text: std::string, topMargin: float, leftMargin: float, rightMargin: float)在此 PdfFileStamp 实例上调用 AddHeader(text, topMargin, leftMargin, rightMargin)。
AddFooter(text: std::string, bottomMargin: float)在此 PdfFileStamp 实例上调用 AddFooter(text, bottomMargin)。
AddFooter(text: std::string, bottomMargin: float, leftMargin: float, rightMargin: float)在此 PdfFileStamp 实例上调用 AddFooter(text, bottomMargin, leftMargin, rightMargin)。
OptimizeSize() → bool在此 PdfFileStamp 实例上调用 OptimizeSize。
OptimizeSize(value: bool)在此 PdfFileStamp 实例上调用 OptimizeSize(value)。
KeepSecurity() → bool在此 PdfFileStamp 实例上调用 KeepSecurity。
KeepSecurity(value: bool)在此 PdfFileStamp 实例上调用 KeepSecurity(value)。
InputFile() → std::string在此 PdfFileStamp 实例上调用 InputFile。
InputFile(value: std::string)在此 PdfFileStamp 实例上调用 InputFile(value)。
OutputFile() → std::string在此 PdfFileStamp 实例上调用 OutputFile。
OutputFile(value: std::string)在此 PdfFileStamp 实例上调用 OutputFile(value)。
PageNumberRotation() → float在此 PdfFileStamp 实例上调用 PageNumberRotation。
PageNumberRotation(value: float)在此 PdfFileStamp 实例上调用 PageNumberRotation(value)。
ConvertTo(value: Aspose::Pdf::PdfFormat)在此 PdfFileStamp 实例上调用 ConvertTo(value)。
PageHeight() → float在此 PdfFileStamp 实例上调用 PageHeight。
PageWidth() → float在此 PdfFileStamp 实例上调用 PageWidth。
StartingNumber() → int在此 PdfFileStamp 实例上调用 StartingNumber。
StartingNumber(value: int)在此 PdfFileStamp 实例上调用 StartingNumber(value)。
StampId() → int在此 PdfFileStamp 实例上调用 StampId。
StampId(value: int)在此 PdfFileStamp 实例上调用 StampId(value)。

另请参阅

 中文