DocumentInfo_Title
IPDFDocument3 :: General document methods

See Also Example
Collapse All

This property gets or sets the title of the current PDF document.

Syntax

BSTR DocumentInfo_Title { get; set; }
Value
String with PDF document's title

Remarks

Example

Setting Document Information

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.DocumentInfo_Author := 'John Doe';
PDF.DocumentInfo_Subject := 'John Doe's Biography';
PDF.DocumentInfo_Title := 'John Doe's Biography';
PDF.DocumentInfo_Keywords := 'John, Doe, Biography';
PDF.DocumentInfo_CreationDate := Now;
PDF.DocumentInfo_Producer := 'MyApplication v1.0';
PDF.DocumentInfo_Creator := 'MyEngine v1.0';
{ other manipulations with document }
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->DocumentInfo_Author = "John Doe";
PDF->DocumentInfo_Subject = "John Doe's Biography";
PDF->DocumentInfo_Title = "John Doe's Biography";
PDF->DocumentInfo_Keywords = "John, Doe, Biography";
PDF->DocumentInfo_CreationDate = COleDateTime::GetCurrentTime().m_dt;
PDF->DocumentInfo_Producer = "MyApplication v1.0";
PDF->DocumentInfo_Creator = "MyEngine v1.0";
// other manipulations with document
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.DocumentInfo_Author = "John Doe";
PDF.DocumentInfo_Subject = "John Doe's Biography";
PDF.DocumentInfo_Title = "John Doe's Biography";
PDF.DocumentInfo_Keywords = "John, Doe, Biography";
PDF.DocumentInfo_CreationDate = DateTime.Now;
PDF.DocumentInfo_Producer = "MyApplication v1.0";
PDF.DocumentInfo_Creator = "MyEngine v1.0";
// other manipulations with document
PDF.EndDoc();
Visual Basic Script
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
PDF.DocumentInfo_Author = "John Doe"
PDF.DocumentInfo_Subject = "John Doe's Biography"
PDF.DocumentInfo_Title = "John Doe's Biography"
PDF.DocumentInfo_Keywords = "John, Doe, Biography"
PDF.DocumentInfo_CreationDate = Now
PDF.DocumentInfo_Producer = "MyApplication v1.0"
PDF.DocumentInfo_Creator = "MyEngine v1.0"
' other manipulations with document
PDF.EndDoc

See Also

Reference