Dear Paolo,

Just trying to understand:
i) I keep the PdfAnnotation.createFileAttachment(... for each attachment
ii) You suggest to add the filename as text which I successfully did with
        PdfContentByte cb = psa.getUnderContent(1);
        cb.moveTo(0, 0);
          ...looping for each attachment in my atta list
             PdfAnnotation.createFileAttachment(llx,lly,llx+100,... as in i)
             cb.setFontAndSize(bf, DFLT_FNT_SZIE - 2);
             cb.beginText();
             cb.setTextMatrix(llx + 18, lly + 80);
             cb.showText(attaName + " (" + atta.getSizeKB() + " KB)");
             cb.endText();
        End of loop

It looks fine now, but 
1) despite sizing the createFileAttachment rectangle of x-width 100, I can
only click on the roughly the first 25 or so - how can I make this wider?
2) if the showText gets too long, it doesn't wrap. How could I convince it
to wrap?


3) Also, you are talking about an appearance - I guess this is only needed
if I want to have a clip instead of a pin?

Many thanks for any hints in advance!

        Ralf
> -----Original Message-----
> From: Paulo Soares [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 06, 2005 12:29 PM
...
> Create the
> annotation rectangle covering the paper clip and the text. Create an
> appearance with the same dimensions (but origin 0,0) and place the paper
> clip drawing on the left.
> 
> > -----Original Message-----
> > Sent: Wednesday, July 06, 2005 11:17 AM
...
> > Exactly what I need - ...
> > > -----Original Message-----
> > > From: ... Paulo Soares
> > ...
> > >
> > > Is this what you want? (the dimensions are not exact but that's a
> > > consequence of the pdf generator you used. With iText it
> > will be exact).
> > >
> > >
> > > > -----Original Message-----
> > > > From: ... Ralf Hauser
> > > > Sent: Wednesday, July 06, 2005 10:22 AM
... Attached a sample
> > > > file where I
> > > > would like that clicking on the textual "clouds.jpg" also
> > > > would open the
> > > > attachment.



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to