PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllClears all internal data and stops the generation of the PDF document.
|
| HRESULT Clear () |
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Example
Aborting PDF file creation
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
{ some methods call e.t.c. }
{ let variable 'errorOccured' contains value indicating if error occured }
if errorOccured then
PDF.Clear
else
PDF.SaveToFile("test.pdf", true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
// some methods call e.t.c.
// let variable 'errorOccured' contains value indicating if error occured
if (errorOccured)
PDF->Clear();
else
PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
// some methods call e.t.c.
// let variable 'errorOccured' contains value indicating if error occured
if (errorOccured)
PDF.Clear();
else
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created 'some methods call e.t.c. ' let variable 'errorOccured' contains value indicating if error occured if errorOccured Then PDF.Clear else PDF.SaveToFile "test.pdf", true end if Set PDF = nothing
See Also
Reference


