Am 16.11.2015 um 06:44 schrieb kevin:
hi,everyone!


I'm newbee and using the pdfbox to create the pdf document recently.
I can see the way to change the font size below:


---
...
PDType0Font font = PDType0Font.load(document, new File(dir + "sample.ttf"));
stream.setFont(font, 12);
...
--


is there a way for change the font color or font style(italy,bold,etc.) ?


Change color:  call setNonStrokingColor (r, g, b)
Change font style: use a font with that style.

(It's also possible differently (text matrix with a skew, rendering mode 2) but that is more difficult to understand)

Tilman

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to