I found some tutorials about how to draw forms in iText, but I need to insert it into a cell, and I don´t know how.
Thank you for your consideration of this matter.
I found some tutorials about how to draw forms in iText, but I need
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.
An iText Image extends Rectangle. You could make a new implementation of image.
You can create an Image from a template, and you can create a template using a content byte.
You could therefore create a template, draw a rectangle on it, create the image and then set the image on the desired cell. I have done something similar with a rectangle pattern some time back.
Edit: If you just need to fill the entire cell you can use the
setBackgroundandsetBordermethods.