PDFium Component Docs

Creator Egenskap

Denna API-post behåller identifierare, signaturer, kodblock och PDF-termer i ursprunglig form.
Komponent: TPdf  ·  Enhet: PDFium
Name of the originating authoring application stored in the Info dictionary.

Syntax

property Creator: WString; // read only

Beskrivning

Creator returnerar /Creator-posten från dokumentets informationsordbok (PDF 1.7-specifikationens avsnitt 14.3.3). Enligt konvention identifierar detta fält programmet som skapade originaldokumentet — e.g. Microsoft Word, LibreOffice Writer, Adobe InDesign — while Producer identifierar programvaran som konverterade det källmaterialet till den slutliga PDF:en (vanligtvis ett PDF-bibliotek som Adobe PDF Library, GPL Ghostscript, PDFium osv.).

Returvärdet avkodas som UTF-16 (WString), så icke-ASCII-namn såsom “Microsoft® Word for Microsoft 365” eller fullständiga CJK-produktnamn bevaras ordagrant. Strängen är tom när Active är False, när Info-ordboken saknas eller när PDF:en genererades utan en /Creator-post (helt lagligt: fältet är valfritt).

Newer PDFs may also carry the same information in XMP metadata (xmp:CreatorTool); when both are present they should agree but historically drift apart after multiple edit/save cycles. PDFiumPas only surfaces the Info-dictionary copy through this property — access MetaText['CreatorTool'] if you need the XMP version explicitly.

Anmärkningar

Exempel

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

Se även

Producer, Author, Title, MetaText