Two Pilots™    Home  |  Navigation  |  Site Map  |  Products  |  Download  |  Prices  |  For Partners  |  Support


All forums · Statistics · Search ·

Two Pilots forum / Converters / PDFcreator Drawing a green rectangle
Author Message
Maria
# Posted: 8 Mar 2007 11:40


Please help

Can anybody tell me how to draw a green rectanlge in the middle of a pdf page with the pdf converter pilot 3.2?
I need to do it from visual basic

thanks

Stanislav
Member
# Posted: 8 Mar 2007 12:10


Dear Maria,

To draw a green rectangle, you need to write something like this:

PDF.PDFPAGE_Rectangle 100, 100, 200, 200
PDF.PDFPAGE_SetRGBColorFill 0, 1,0
PDF.PDFPAGE_Fill

required coordinates of the middle position of the rectangle you can calculate using page width PDF.PageWidth and required width of the rectangle.

Best regards,
Stanislav
Two Pilots
www.colorpilot.com

 

 

Powered by miniBB 2.0 RC7 © 2001-2004 Page creation time (sec.): 0.013

 

Page top