PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllAny image, created in your own programs or stored in external files, can be inserted into a PDF document. 1. If you have an image in an external file, you can load the image into PDF engine memory using the AddImageFromFile method. Another way is to use images in your program memory with the AddImageFromHandle method, or other methods, to get an image index. Delphi : J = PDF.AddImageFromFile('chart.jpg');
{ or }
J = PDF.AddImageFromBuffer(Buffer, BufLen);
Visual Basic or Visual Basic Script : J = PDF.AddImageFromFile("chart.jpg")
' or
J = PDF.AddImageFromBuffer(Buffer, BufLen)
C/C++ : long J = PDF->AddImageFromFile("chart.jpg");
// or
long J = PDF->AddImageFromBuffer(Buffer, BufLen);
C# : long J = PDF.AddImageFromFile("chart.jpg");
// or
long J = PDF.AddImageFromBuffer(Buffer, BufLen);
2. Show your image in any place in the PDF workplace with ShowImage or DrawImage methods. Delphi : PDF.ShowImage(J, 5, 5); Visual Basic or Visual Basic Script : PDF.ShowImage(J, 5, 5) C/C++ : PDF->ShowImage(J, 5, 5); C# : PDF.ShowImage(J, 5, 5); For more details see Graphics methods.
|



See Also