In this program, we are going to give you an example that helps you for the procedure of using various fonts in a pdf document. Here, add(object) method of the Paragraph class is used to add text and it's font name with size.
The following method and fields are used for creating multiple colorful fonts.
add(Chunk chunk,Font font): The add method is used to add the chunk text and name of font with font size.
Following are some font name used in the given program:
The code of the program is given below:
The output of the program is given below:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: April 17, 2007 If you enjoyed this post then why not add us on Google+? Add us to your Circles