Abort
IPDFDocument3 :: General document methods

See Also Example
Collapse All

Clears all internal data and stops the generation of the PDF document.

Syntax

HRESULT Abort ()
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

Equivalent in new interface: IPDFDocument4::Clear.

Example

Order of Methods for Creating a PDF File and Aborting Without File Generation

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.StartEngine('demo', 'demo');
PDF.FileName := 'empty.pdf';
PDF.AutoLaunch := true;
PDF.BeginDoc;
PDF.Abort;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->StartEngine('demo', 'demo');
PDF->FileName = 'empty.pdf';
PDF->AutoLaunch = TRUE;
PDF->BeginDoc();
PDF->Abort();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.StartEngine('demo', 'demo');
PDF.FileName = 'empty.pdf';
PDF.AutoLaunch = true;
PDF.BeginDoc();
PDF.Abort();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.StartEngine "demo", "demo"
PDF.AutoLaunch = True
PDF.FileName = "empty.pdf"
PDF.BeginDoc
PDF.Abort

See Also

Reference