Using the Device Context
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.SetLicenseData('demo', 'demo');
PDF.UseScreenBasedDC := false;
PDF.PrinterNameForDC := 'Microsoft Office Document Image Writer';
{ use standard GDI drawing functions: }
Rectangle(PDF.GetDC(), 10, 10, 200, 200);
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->SetLicenseData("demo", "demo");
PDF->UseScreenBasedDC = false;
PDF->PrinterNameForDC = "Microsoft Office Document Image Writer";
// use standard GDI drawing functions:
Rectangle(PDF->GetDC(), 10, 10, 200, 200);
PDF->SaveToFile("test.pdf", true);
// PDF object is supposed to be created
PDF.SetLicenseData("demo", "demo");
PDF.UseScreenBasedDC = false;
PDF.PrinterNameForDC = "Microsoft Office Document Image Writer"
// use standard GDI drawing functions:
Rectangle(PDF.GetDC(), 10, 10, 200, 200);
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.SetLicenseData "demo", "demo"
PDF.UseScreenBasedDC = False
PDF.PrinterNameForDC = "Microsoft Office Document Image Writer"
// use standard GDI drawing functions:
Rectangle PDF.GetDC, 10, 10, 200, 200
PDF.SaveToFile "test.pdf", true