> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Neil Darroch
> Sent: Sunday, November 07, 2004 11:06 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [iText-questions] PdfAnnotation.createFreeText
>
> Thanks Paulo, that worked.
>
> I have followup questions now.
> In the general properties for the textbox the Fields
> for Author and Subject are blank and the Modified
> Field is 'Indeterminate'.
>
> I have tried putting MODDATE in addition to
> CREATIONDATE.
> eg annot.put(PdfName.MODDATE, new PdfDate);
>
annot.put(PdfName.M, new PdfDate());
> How do I get the Modified date to correctly show?
>
> How do I add the detail for Author and Subject
> properties. What PdfNames refer to these? (I did try
> Author but suspect this is for the document)
>
annot.put(PdfName.T, new PdfString("I'm the author"));
annot.put(new PdfName("Subj"), new PdfString("I'm the subject"));
> Thanks,
>
> Neil.
> --- Paulo Soares <[EMAIL PROTECTED]> wrote:
> > annot.put(new PdfName("CreationDate"), new
> > PdfDate());
> >
> > This solves the problem. Weird, isn't it?
> >
> > Best Regards,
> > Paulo Soares
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > >
> > [mailto:[EMAIL PROTECTED]
> > On
> > > Behalf Of Neil Darroch
> > > Sent: Tuesday, November 02, 2004 9:30 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [iText-questions]
> > PdfAnnotation.createFreeText
> > >
> > > Can anyone assist with this?
> > >
> > > --- Neil Darroch <[EMAIL PROTECTED]> wrote:
> > > > --- Paulo Soares <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > ----- Original Message -----
> > > > > > Hi,
> > > > > >
> > > > > > I'm using PdfAnnotation.createFreeText to
> > create
> > > > a
> > > > > > textBox. I was advised this is the
> > equivalent of
> > > > > > TextBox in Adobe Acrobat.
> > > > > > It does not behave the same way as a TextBox
> > > > > created
> > > > > > with Adobe. Specifically it does not
> > disappear
> > > > > when
> > > > > > 'Hide All comments' is selected whereas the
> > > > adobe
> > > > > > created TexBox does.
> > > > > > Is there something I'm missing in order to
> > get
> > > > > this
> > > > > > functionality with the iText created one?
> > > > > >
> > > > >
> > > > > Show us the code.
> > > > >
> > > > Ok, here is the relevant snippet
> > > >
> > > > PdfAnnotation annot =
> > > > PdfAnnotation.createFreeText(writer,
> > > > new Rectangle(llx,lly,urx,ury),
> > > > textboxtext,cb);
> > > > annot.setColor(new Color(255, 255,
> > > > 170));
> > > > annot.setBorderStyle(new
> > > >
> > >
> >
> PdfBorderDictionary(0,PdfBorderDictionary.STYLE_BEVELED));
> > > > writer.addAnnotation( annot );
> > > >
> > > >
> > > > Where,
> > > > textboxtext is a String containing the text I
> > wish
> > > > to
> > > > add.
> > > > llx, lly, urx, ury are int defining the bounds.
> > > > cb is PdfContentByte
> > > > writer is PdfWriter.
> > > >
> > > > I couldn't find any attributes or other values
> > to
> > > > set
> > > > that would seem to alter the behaviour to what I
> > was
> > > > expecting/hoping for.
> > > >
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> ___________________________________________________________ALL
> > > -NEW Yahoo! Messenger - all new features - even
> > more fun!
> > > http://uk.messenger.yahoo.com
> > >
> > >
> > >
> >
> -------------------------------------------------------
> > > This SF.Net email is sponsored by:
> > > Sybase ASE Linux Express Edition - download now
> > for FREE
> > > LinuxWorld Reader's Choice Award Winner for best
> > database on Linux.
> > >
> >
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> > > _______________________________________________
> > > iText-questions mailing list
> > > [EMAIL PROTECTED]
> > >
> >
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> > >
> >
> >
> >
> -------------------------------------------------------
> > This SF.Net email is sponsored by:
> > Sybase ASE Linux Express Edition - download now for
> > FREE
> > LinuxWorld Reader's Choice Award Winner for best
> > database on Linux.
> > http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
> > _______________________________________________
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> >
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
>
>
>
>
>
> ___________________________________________________________ALL
> -NEW Yahoo! Messenger - all new features - even more fun!
> http://uk.messenger.yahoo.com
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions