PDFium Component Docs

Producer プロパティ

この API エントリでは識別子、シグネチャ、コードブロック、PDF 用語を元の表記のまま保持します。
コンポーネント: TPdf  ·  ユニット: PDFium
ファイルを生成した PDF ライブラリまたはコンバーターの名前です

構文

property Producer: WString; // read only

説明

Producer returns the Info dictionary’s /Producer entry (PDF 1.7 spec section 14.3.3). The string identifies the software component that wrotePDF バイト列を生成したソフトウェアを示します。典型的には “Adobe PDF Library 17.0”、“Microsoft: Print To PDF”、“Skia/PDF m126”、“GPL Ghostscript 10.02”、“iText 8.0.2” などの PDF レンダリングまたは変換エンジンです。Creator, which describes the originating authoring application (Word, InDesign, …).

値は UTF-16 にデコードされます。Info 辞書がない場合、またはActive is False. Both /Producer and /Creator are optional in the spec but virtually every modern PDF declares /Producer because PDF generators write it automatically.

Producer is a strong signal for routing decisions: scanned-then-OCR’d PDFs typically advertise a TWAIN scanner driver, screen-captured PDFs show “Microsoft: Print To PDF”, while authoring-tool exports name a known conversion library. Newer PDFs may also mirror this value in XMP metadata as pdf:Producer; the two should agree but historically drift apart after incremental updates.

備考

Pdf1.LoadFromFile('invoice.pdf');
if Pos('Ghostscript', Pdf1.Producer) > 0 then
  Log.Add('Re-converted by Ghostscript - validate signatures');

関連項目

Creator, PdfVersion, Author, MetaText