open - A flag specifying whether the annotation should initially be
displayed open.
icon - The name of an icon to be used in displaying the annotation. It can
be: Comment, Key, Note, Help, NewParagraph, Paragraph, Insert. It can be
null.

If you don't touch the flags the annotation will not print, at least with
Reader 5.0. In Reader 3.0 it will always print.

Documentation will follow in the near future.

Best Regards,
Paulo Soares


> -----Original Message-----
> From: Chen, Donald [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, March 26, 2002 15:53
> To:   'Paulo Soares'; '[EMAIL PROTECTED]';
> [EMAIL PROTECTED]
> Subject:      RE: [iText-questions] Re: Not printing the annotation
> 
> 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