PDFium Component Docs

Creator プロパティ

この API エントリでは識別子、シグネチャ、コードブロック、PDF 用語を元の表記のまま保持します。
コンポーネント: TPdf  ·  ユニット: PDFium
Name of the originating authoring application stored in the Info dictionary.

構文

property Creator: WString; // read only

説明

Creator は文書 Information dictionary から /Creator entry を返します (PDF 1.7 spec section 14.3.3)。慣例上、この field は original document を作成した application を示し、たとえば Microsoft Word, LibreOffice Writer, Adobe InDesign などが入ります。一方 Producer は、その source を最終 PDF に変換した software を示します。通常は Adobe PDF Library, GPL Ghostscript, PDFium などの PDF library です

返り値は UTF-16 に decode 済みの WString なので、“Microsoft® Word for Microsoft 365” のような非 ASCII 名や CJK の product name もそのまま保持されます。ActiveFalse のとき、Info dictionary がないとき、または PDF が /Creator entry なしで生成されたときは string は空です。この field は optional なので、それ自体は正しい状態です

新しい PDF では同じ情報が XMP metadata (xmp:CreatorTool) にも入ることがあります。両方ある場合は一致しているべきですが、複数回の edit/save 後にずれることがあります。PDFiumPas はこの property では Info dictionary 側だけを公開します。XMP 版が必要なら MetaText['CreatorTool'] に access してください

備考

Pdf1.LoadFromFile(OpenDialog1.FileName);
Memo1.Lines.Add('Authored with: ' + Pdf1.Creator);
Memo1.Lines.Add('PDF engine: ' + Pdf1.Producer);

関連項目

Producer, Author, Title, MetaText