Aborted
IPDFDocument3 :: General document methods

See Also Example
Collapse All

This read-only property gets the value indicating if generation of the PDF document was stopped using the Abort method.

Syntax

VARIANT_BOOL Aborted { get; }
Value
VARIANT_TRUE if generation of the PDF document was stopped, VARIANT_FALSE otherwise.

Example

Order of Methods for Creating a PDF File and Aborting before Completing the Process

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.StartEngine('demo', 'demo');
PDF.FileName := 'empty.pdf';
PDF.BeginDoc;
PDF.Abort;
If PDF.Aborted then; { Doing something after aborting }
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();
if (PDF->Aborted)
{
  //Doing something after aborting
}
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();
if (PDF.Aborted)
{
  //Doing something after aborting
}
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.StartEngine "demo@demo", "demo"
PDF.AutoLaunch = True
PDF.FileName = "empty.pdf"
PDF.BeginDoc
PDF.Abort
If PDF.Aborted
'Doing something after aborting 
End If

See Also

Reference