PdfFileInfo

概述

PdfFileInfo 是 Aspose.PDF 为 C++ 提供的 FOSS 中的一个类。

PdfFileInfo 为标准元数据字段(如 Author、Creator)以及通过 GetMetaInfo(name) 和 SetMetaInfo(name, value) 设置的自定义键提供获取器和设置器。

此类提供 39 个方法用于在 C++ 程序中处理 PdfFileInfo 对象。可用的方法包括:Author、BindPdf、ClearInfo、CreationDate、Creator、GetMetaInfo、GetPageHeight、GetPageRotation、GetPageWidth、GetPageXOffset、GetPageYOffset、GetPdfVersion,以及另外 18 个方法。安装 Aspose.PDF 为 C++ 提供的 FOSS 包后,所有公共成员对任何 C++ 应用程序均可访问。

方法

签名描述
PdfFileInfo()在此 PdfFileInfo 实例上调用 PdfFileInfo。
BindPdf(srcDoc: Aspose::Pdf::Document)在此 PdfFileInfo 实例上调用 BindPdf(srcDoc)。
ClearInfo()在此 PdfFileInfo 实例上调用 ClearInfo。
GetMetaInfo(name: std::string) → std::string在此 PdfFileInfo 实例上调用 GetMetaInfo(name)。
SetMetaInfo(name: std::string, value: std::string)设置元信息的值。
GetPageHeight(pageNum: int) → float在此 PdfFileInfo 实例上调用 GetPageHeight(pageNum)。
GetPageRotation(pageNum: int) → float在此 PdfFileInfo 实例上调用 GetPageRotation(pageNum)。
GetPageWidth(pageNum: int) → float在此 PdfFileInfo 实例上调用 GetPageWidth(pageNum)。
GetPageXOffset(pageNum: int) → float在此 PdfFileInfo 实例上调用 GetPageXOffset(pageNum)。
GetPageYOffset(pageNum: int) → float在此 PdfFileInfo 实例上调用 GetPageYOffset(pageNum)。
GetPdfVersion() → std::string返回 pdf 版本。
SaveNewInfo(outputFile: std::string) → bool在此 PdfFileInfo 实例上调用 SaveNewInfo(outputFile)。
SaveNewInfoWithXmp(outputFileName: std::string) → bool在此 PdfFileInfo 实例上调用 SaveNewInfoWithXmp(outputFileName)。
Author() → std::string在此 PdfFileInfo 实例上调用 Author。
Author(value: std::string)在此 PdfFileInfo 实例上调用 Author(value)。
CreationDate() → std::string在此 PdfFileInfo 实例上调用 CreationDate。
CreationDate(value: std::string)在此 PdfFileInfo 实例上调用 CreationDate(value)。
Creator() → std::string在此 PdfFileInfo 实例上调用 Creator。
Creator(value: std::string)在此 PdfFileInfo 实例上调用 Creator(value)。
Keywords() → std::string在此 PdfFileInfo 实例上调用 Keywords。
Keywords(value: std::string)在此 PdfFileInfo 实例上调用 Keywords(value)。
ModDate() → std::string在此 PdfFileInfo 实例上调用 ModDate。
ModDate(value: std::string)在此 PdfFileInfo 实例上调用 ModDate(value)。
Producer() → std::string在此 PdfFileInfo 实例上调用 Producer。
Subject() → std::string在此 PdfFileInfo 实例上调用 Subject。
Subject(value: std::string)在此 PdfFileInfo 实例上调用 Subject(value)。
Title() → std::string在此 PdfFileInfo 实例上调用 Title。
Title(value: std::string)在此 PdfFileInfo 实例上调用 Title(value)。
IsEncrypted() → bool如果已设置 encrypted,则返回 true。
IsPdfFile() → bool如果已设置 pdf 文件,则返回 true。
UseStrictValidation() → bool在此 PdfFileInfo 实例上调用 UseStrictValidation。
UseStrictValidation(value: bool)在此 PdfFileInfo 实例上调用 UseStrictValidation(value)。
HasCollection() → bool如果集合存在,则返回 true。
InputFile() → std::string在此 PdfFileInfo 实例上调用 InputFile。
InputFile(value: std::string)在此 PdfFileInfo 实例上调用 InputFile(value)。
NumberOfPages() → int在此 PdfFileInfo 实例上调用 NumberOfPages。
PasswordType() → Aspose::Pdf::PasswordType在此 PdfFileInfo 实例上调用 PasswordType。
HasOpenPassword() → bool如果存在打开密码,则返回 true。
HasEditPassword() → bool如果存在编辑密码,则返回 true。

另请参阅

 中文