> On 15 Nov 2015, at 21:44, kevin <[email protected]> wrote: > > 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.) ?
Different font styles are in separate font files, e.g. “Arial.ttf”, “Arial Bold.ttf”. — John > Thanks in advance! --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

