fonts - How do I get my text to be both bold and italic in iText? -


i trying make text both bold , italic @ same time paragraph in pdf document using itext.

i can use either of these bold , italic respectively, not both simultaneously:

font font = new font(font.fontfamily.times_roman, 10, font.fontstyle.bold.ordinal());

font font = new font(font.fontfamily.times_roman, 10, font.fontstyle.italic.ordinal());

how can use both?

try

font font = new font(font.fontfamily.times_roman, 10, font.bolditalic); 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -