Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
PDF Creator Pilot 3 Knowledge Base
How to Draw Simple Elements (Line, Circle, Arc) with Different Attributes

See Also
Collapse All

You can use any available drawing primitives in your PDF files by folowing steps:

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

Delphi :

PDF.PDFPAGE_SetRGBColorStroke(0,0,0); { black color }
PDF.PDFPAGE_SetLineWidth(1);

Visual Basic or Visual Basic Script :

PDF.PDFPAGE_SetRGBColorStroke 0,0,0 // black color 
PDF.PDFPAGE_SetLineWidth 1 

C/C++ :

PDF->PDFPAGE_SetRGBColorStroke(0,0,0); // black color 
PDF->PDFPAGE_SetLineWidth(1);

C# :

PDF.PDFPAGE_SetRGBColorStroke(0,0,0); // black color 
PDF.PDFPAGE_SetLineWidth(1);

2. Set the draw object.

Delphi :

PDF.PDFPAGE_Ellipse(60.0,70.0,140.0,130.0);
{ or }
PDF.PDFPAGE_Rectangle(10, 10, 40, 20);

Visual Basic or Visual Basic Script :

PDF.PDFPAGE_Ellipse 60.0,70.0,140.0,130.0
'or
PDF.PDFPAGE_Rectangle 10, 10, 40, 20

C/C++ :

PDF->PDFPAGE_Ellipse(60.0,70.0,140.0,130.0);
//or
PDF->PDFPAGE_Rectangle(10, 10, 40, 20);

C# :

PDF.PDFPAGE_Ellipse(60.0,70.0,140.0,130.0);
//or
PDF.PDFPAGE_Rectangle(10, 10, 40, 20);

3. Stroke and/or fill the draw path:

Delphi :

PDF.PDFPAGE_Stroke;
{ or }
PDF.PDFPAGE_Fill;
{ or }
PDF.PDFPAGE_FillAndStroke;

Visual Basic or Visual Basic Script :

PDF.PDFPAGE_Stroke
'or
PDF.PDFPAGE_Fill
'or
PDF.PDFPAGE_FillAndStroke

C/C++ :

PDF->PDFPAGE_Stroke();
//or
PDF->PDFPAGE_Fill();
//or
PDF->PDFPAGE_FillAndStroke();

C# :

PDF.PDFPAGE_Stroke();
//or
PDF.PDFPAGE_Fill();
//or
PDF.PDFPAGE_FillAndStroke();

For more information, see PDFPAGE_Rectangle, PDFPAGE_Ellipse, PDFPAGE_Fill, PDFPAGE_Stroke, PDFPAGE_FillAndStrokePDFPAGE_SetRGBColorStroke, PDFPAGE_SetLineWidth.

See Also

Reference

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots