Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
PDF Creator Pilot 4
How to draw simple elements, such as a line, circle, or arc, with different attributes

See Also
Collapse All

You can use any available drawing primitives in your PDF files in three simple steps:

1. Select your preferred color and line weight for drawing.

Delphi :

PDF.SetColorStroke(0,0,0,0); { black color }
PDF.SetLineWidth(1);

Visual Basic or Visual Basic Script :

PDF.SetColorStroke 0,0,0,0 // black color 
PDF.SetLineWidth 1

C/C++ :

PDF->SetColorStroke(0,0,0,0); // black color 
PDF->SetLineWidth(1);

C# :

PDF.SetColorStroke(0,0,0,0); // black color 
PDF.SetLineWidth(1);

2. Set the draw object.

Delphi :

PDF.DrawEllipse(60, 70, 140, 130);
{ or }
PDF.DrawRectangle(10, 10, 40, 20);

Visual Basic or Visual Basic Script :

PDF.DrawEllipse 60, 70, 140, 130
'or
PDF.DrawRectangle 10, 10, 40, 20

C/C++ :

PDF->DrawEllipse(60, 70, 140, 130);
//or
PDF->DrawRectangle(10, 10, 40, 20);

C# :

PDF.DrawEllipse(60, 70, 140, 130);
//or
PDF.DrawRectangle(10, 10, 40, 20);

3. Don't forget to stroke and/or fill the draw path:

Delphi :

PDF.Stroke;
{ or }
PDF.Fill;
{ or }
PDF.FillAndStroke;

Visual Basic or Visual Basic Script :

PDF.Stroke
'or
PDF.Fill
'or
PDF.FillAndStroke

C/C++ :

PDF->Stroke();
//or
PDF->Fill();
//or
PDF->FillAndStroke();

C# :

PDF.Stroke();
//or
PDF.Fill();
//or
PDF.FillAndStroke();

For more information, see Graphics methods.

See Also

Reference

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots