Hi I am able to generate pdf containing table with data using iText. How do I bold specific data in a particular row?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First you instantiate a font object with the required details. Here you will specify whether it is Bold.
Then use the font in whatever you want to use it.
In order to add a table cell with Bold font.
Example to create a paragraph with bold text.
You can use the same instance everywhere depending on whether the API allows it. Go through the documentation to figure out what allows Font manipulation.
See here for more examples.
http://www.vogella.de/articles/JavaPDF/article.html