Hello all,
I'm adding a TextField to existing PDF.
I need this text to be transparent so the text below will be visible.
I found only ways to make images and layers transparent.
Is it possible to do this for a Field?
This is my code:

Rectangle rect = new Rectangle(80,450,450,550);
TextField field = new TextField(writer,rect , "status_field");
field.setTextColor(new BaseColor(0).GRAY);
field.setFont(bf);
field.setFontSize(70);
field.setAlignment(Element.ALIGN_LEFT);
field.setText(theStatus);
field.setVisibility(PdfAnnotation.FLAGS_NOVIEW);
field.setOptions(TextField.MULTILINE | TextField.READ_ONLY );

PdfFormField namefield = field.getTextField();
stamper.addAnnotation(namefield, p);


Thanks,

yotam
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to