Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] PdfPCell in a layer...

Marco Schoolenberg

2006-07-06



Dear Itext contributers,

I am new to iText. First of I want to say "very nice package". Though I have
a question. In my code I am in a for loop hitting the elements of a Vector
object with some db entries. I am wondering if there is a good way to add a
specific PdfPCell to a PdfLayer. The issue is I don't want to add the whole
table I am looping true to the layer because. I have tried to make use of:

          TextField ff = new TextField(writer, new Rectangle(200, 600,
300, 620), "field1");
          ff.setBorderColor(Color.blue);
         // ff.setBorderStyle(PdfBorderDictionary.STYLE_SOLID);
          ff.setBorderWidth(TextField.BORDER_WIDTH_THIN);
          ff.setText("I'm a form field");
          PdfFormField form = ff.getTextField();
          form.setLayer(l2);
          writer.addAnnotation(form);

Writing it in this way presents me with positioning a issue. I would like
to use a setLayer(layer) on a PdfPCell. I know I can't can anyone give me a
good suggestion?

Kind regards


Marco Schoolenberg
Marco.Schoolenberg@(protected)



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.