In PdfFormField.setFlags() make sure that PdfAnnotation.FLAGS_HIDDEN,
PdfAnnotation.FLAGS_PRINT and PdfAnnotation.FLAGS_NOVIEW are not set. The general ruse
is:
switch (visibility) {
case HIDDEN:
field.setFlags(PdfAnnotation.FLAGS_PRINT | PdfAnnotation.FLAGS_HIDDEN);
break;
case VISIBLE_BUT_DOES_NOT_PRINT:
break;
case HIDDEN_BUT_PRINTABLE:
field.setFlags(PdfAnnotation.FLAGS_PRINT | PdfAnnotation.FLAGS_NOVIEW);
break;
default:
field.setFlags(PdfAnnotation.FLAGS_PRINT);
break;
}
Best Regards,
Paulo Soares
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Ignacio Galmarino
> Sent: Thursday, May 27, 2004 10:07 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [iText-questions] non-printable table (or watermark)
>
> ok, i find how to insert a button ... but how do i make it
> visible but not
> printable ???
>
> Thanks
>
> Ignacio
>
> --- Paulo Soares <[EMAIL PROTECTED]> wrote:
> > Put your non printable data inside a button. Make that button .
> >
> > Best Regards,
> > Paulo Soares
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On
> > > Behalf Of Ignacio Galmarino
> > > Sent: Wednesday, May 26, 2004 5:41 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [iText-questions] non-printable table (or watermark)
> > >
> > > I have the following problem. The system im working on (web
> > > base) generate an
> > > invoce. This invoce need to be printed, so i generate it on a
> > > pdf (because of
> > > the margin problems of the java printing api). The problem is
> > > that the invoce
> > > is printed on a preformated paper .... only some data need to
> > > be printed
> > > (invoce number, name, etc). But on the screen the invoce need
> > > to have all the
> > > other field, tables, graphics, etc. Is any way i can generate
> > > for example a
> > > table with some data and only print some of them ???? or to
> > > add a watermark
> > > with the formating of the invoce but dont print it ???
> > >
> > > Sorry my english is not so good
> > >
> > > Ignacio
> > >
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Friends. Fun. Try the all-new Yahoo! Messenger.
> > > http://messenger.yahoo.com/
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: Oracle 10g
> > > Get certified on the hottest thing ever to hit the market...
> > > Oracle 10g.
> > > Take an Oracle 10g class now, and we'll give you the exam FREE.
> > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> > > _______________________________________________
> > > iText-questions mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > >
> > >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: Oracle 10g
> > Get certified on the hottest thing ever to hit the
> market... Oracle 10g.
> > Take an Oracle 10g class now, and we'll give you the exam FREE.
> > http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
> > _______________________________________________
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Friends. Fun. Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market...
> Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions