Borland Delphi 2005

Top  Previous  Next

Steps for Borland Delphi 2005

 

 

 

1.Start Delphi 2005 and from the Component menu, choose Installed .NET Components option.

 

 

 

 

 

 

 

2. The Installed .NET Components dialog box is displayed. From the ActiveX Components tab tick the PDFtoolkit ActiveX control(s) and click the OK button. Depending on the package purchased you will see one or more of the controls displayed. For more information see Editions Of PDFtoolkit ActiveX.

 

 

3. The following diagram shows gtPDFDocumentX component after it has been dragged and dropped from the Tool Palette on a new Windows Forms Application.

 

 

 

 

 

 

 

 

 

4)You can now start coding in the language of your choice. The following code snippets will create a copy of a PDF document

 

 

[C#]

private void button1_Click(object sender, System.EventArgs e)

{

        axgtPDFDocumentX1.LoadFromFile("Input.pdf");

  axgtPDFDocumentX1.SaveToFile("Output.pdf");

}

 

 

[Delphi]

procedure TWinForm.Button1_Click(sender: System.Object; e: System.EventArgs);

begin

AxgtPDFDocumentX1.LoadFromFile('Document1.pdf');

AxgtPDFDocumentX1.SaveToFile('output');

end;