



Collapse All
Syntax| HRESULT SetAuthor ( BSTR author, FontCharset charset ) |
Example// PDF object is supposed to be created
PDF.ShowText('Hello, World!');
PDF.SetAuthor('Doe, John', fcANSI);
PDF.SetCreator('MyApplication v.1.0', fcANSI);
PDF.SetKeywords('key,words', fcANSI);
PDF.SetProducer('MyEngine v.2.1', fcANSI);
PDF.SetSubject('Test', fcANSI);
PDF.SetTitle('John's biography', fcANSI);
PDF.SaveToFile('test.pdf', true);
// PDF object is supposed to be created
PDF->ShowText("Hello, World!");
PDF->SetAuthor("Doe, John", fcANSI);
PDF->SetCreator("MyApplication v.1.0", fcANSI);
PDF->SetKeywords("key,words", fcANSI);
PDF->SetProducer("MyEngine v.2.1", fcANSI);
PDF->SetSubject("Test", fcANSI);
PDF->SetTitle("John's biography", fcANSI);
PDF->SaveToFile("test.pdf", true);
// PDF object is supposed to be created
PDF.ShowText("Hello, World!");
PDF.SetAuthor("Doe, John", FontCharset.fcANSI);
PDF.SetCreator("MyApplication v.1.0", FontCharset.fcANSI);
PDF.SetKeywords("key,words", FontCharset.fcANSI);
PDF.SetProducer("MyEngine v.2.1", FontCharset.fcANSI);
PDF.SetSubject("Test", FontCharset.fcANSI);
PDF.SetTitle("John's biography", FontCharset.fcANSI);
PDF.SaveToFile("test.pdf", true);
' PDF object is supposed to be created PDF.ShowText "Hello, World!" PDF.SetAuthor "Doe, John", 0 'FontCharset.fcANSI PDF.SetCreator "MyApplication v.1.0", 0 PDF.SetKeywords "key,words", 0 PDF.SetProducer "MyEngine v.2.1", 0 PDF.SetSubject "Test", 0 PDF.SetTitle "John's biography", 0 PDF.SaveToFile "test.pdf", true
See Also