PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllSaves a PDF document created to the file specified.
|
| HRESULT SaveToFile ( BSTR name, VARIANT_BOOL autolaunch ) |
Parameters
name
File name.
autolaunch
If VARIANT_TRUE then the file saved will be opened in default PDF viewer.
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Example
How to produce PDF/A compatible document
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.SetLicenseData('demo', 'demo');
{ Here we create our document and fill it's contents. }
PDF.ShowText('Hello, World!');
PDF.SaveToFile('test.pdf', false);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->SetLicenseData("demo", "demo");
// Here we create our document and fill it's contents.
PDF->ShowText("Hello, World!");
PDF->SaveToFile("test.pdf", false);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.SetLicenseData("demo", "demo");
// Here we create our document and fill it's contents.
PDF.ShowText("Hello, World!");
PDF.SaveToFile("test.pdf", false);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.SetLicenseData "demo", "demo" ' Here we create our document and fill it's contents. PDF.ShowText "Hello, World!" PDF.SaveToFile "test.pdf", false
See Also
Reference


