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 もそのまま保持されます。Active が False のとき、Info dictionary がないとき、または PDF が /Creator entry なしで生成されたときは string は空です。この field は optional なので、それ自体は正しい状態です
新しい PDF では同じ情報が XMP metadata (xmp:CreatorTool) にも入ることがあります。両方ある場合は一致しているべきですが、複数回の edit/save 後にずれることがあります。PDFiumPas はこの property では Info dictionary 側だけを公開します。XMP 版が必要なら MetaText['CreatorTool'] に access してください
FPDF_SetMetaText) で Info dictionary を書き換えてください/Creator を偽装するものがあります。string は出所の証拠ではなく、情報としてだけ扱ってくださいProducer と組み合わせると、incoming PDF を source software ごとに group するのに役立ちます
Pdf1.LoadFromFile(OpenDialog1.FileName);
Memo1.Lines.Add('Authored with: ' + Pdf1.Creator);
Memo1.Lines.Add('PDF engine: ' + Pdf1.Producer);