Thank you, Paulo.

PdfAnnotation.createText( PdfWriter writer,           // no problem
                          Rectangle rect,                       // no
problem
                          java.lang.String title,       // no problem
                          java.lang.String contents,    // no problem
                          boolean open,                 // ????
                          java.lang.String icon);     // ????

The "open" and "icon" parameters are not quite intuitive to me, could you
explain a bit?

Also, I tried all the flags in ann.setFlags();

FLAGS_INVISIBLE, FLAGS_HIDDEN, FLAGS_PRINT, FLAGS_NOZOOM, FLAGS_NOROTATE,
FLAGS_NOVIEW, FLAGS_READONLY

None of them can help to achieve the viewable and non-printable effect.

Please advice,

Thanks a lot,

Don


-----Original Message-----
From: Paulo Soares [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 26, 2002 9:48 AM
To: Chen, Donald; '[EMAIL PROTECTED]';
[EMAIL PROTECTED]
Subject: RE: [iText-questions] Re: Not printing the annotation


Use PdfAnnotation.createText() instead.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Chen, Donald [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, March 26, 2002 14:47
> To:   'Paulo Soares'; '[EMAIL PROTECTED]';
> [EMAIL PROTECTED]
> Subject:      RE: [iText-questions] Re: Not printing the annotation
> 
> Paulo,
> 
> I used the Annotation ( rather than PdfAnnotation ) to create 
> annotations ( whose type is title/content ), and in Annotation class, 
> it seems there is no
> Way to setFlags().
> 
> I also tried to use PdfAnnotation in this way:
> 
> new PdfAnnotation(PdfWriter writer, float llx, float lly, float urx, 
> float ury, PdfString title, PdfString content);
> 
> However, the PdfString is a package private class which disallow 
> outside access.  Could you make it public?
> Or if there is some way to go around this?
> 
> Thanks a lot,
> 
> Don
> 
> -----Original Message-----
> From: Paulo Soares [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 26, 2002 7:51 AM
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: [iText-questions] Re: Not printing the annotation
> 
> 
> There are some constants to use with PdfAnnotation.setFlags().
> 
> Best Regards,
> Paulo Soares
> 
> > -----Original Message-----
> > From:       [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent:       Monday, March 25, 2002 23:46
> > To: [EMAIL PROTECTED]
> > Subject:    [iText-questions] Re: Not printing the annotation
> > 
> > If you have the latest iText from Paulo's site, you can do
> > PdfAnnotation.setFlags(16) to disable the print bit. Actually this
> > will set the /F entry in annotation dictionary to be NoZoom which 
> > disables the print bit.
> > 
> > I think Paulo will come to a new method, say setNoPrint() in
> > PdfAnnotion to accomodate this kind of request.
> > 
> > 
> > With regards
> > 
> > Phillip Pan
> > -----------
> > 
> > 
> > _______________________________________________
> > iText-questions mailing list [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> _______________________________________________
> iText-questions mailing list [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions

_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to