PDFlib - 使用文档页面保存自定义元数据?

PDFlib - saving custom metadata with document page?

是否可以使用 PDFlib API 将自定义元数据保存到 PDF 页面?

如何在页面级别保存 "A" 等于 1 并稍后检索它?

您可以使用 XMP 执行此操作。来自 PDFlib 9.2 教程,第 11.1 章:

XMP can be supplied for pages, fonts, ICC profiles, images, graphics, templates, and imported PDF pages. This can be achieved with the metadata option of various functions, for example: metadata={filename=info.xmp inputencoding=winansi}