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
}
// 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