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


All forums · Statistics · Search ·

Two Pilots forum / For software developers / How to set the font
Author Message
Paritosh
Member
# Posted: 14 Nov 2005 10:13


How can i change the font color,size,style in a pdf generated document ?
I know i have to use the property 'fontembedstyle' but don't know how exactly to use.[u][/u].

Stanislav
# Posted: 14 Nov 2005 11:57


Dear Paritosh,

To change font, size and style you should use
PDFPAGE_SetActiveFont method.

To change color you should use methods
PDFPAGE_SetRGBColorFill
PDFPAGE_SetTextRenderingMode

I recommend you to open
C:\Program Files\PDF Creator Pilot 2\Examples\OtherExamples\VBScript\Demo.vbs

and examine it's contents.

Thank you very much !

Best regards,
Stanislav
Two Pilots

Paritosh
Member
# Posted: 14 Nov 2005 12:14


Thanks Stanislav !
But i want to know the exact method of how can i set the font with code.
I want to know how can i set all the parameters of this method.
i tried but it didnt work.

Stanislav
# Posted: 14 Nov 2005 12:56


Dear Paritosh,

The best way for you is to take code examples from Demo.vbs - there are a lot of various examples.

Thank you very much !

Best regards,
Stanislav
Two Pilots

 

 

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

 

Page top