Ok i figured out the root of the problem.

For Adobe there is a difference between 

a) An attachment somewhere on a specific page
                         
writer.addAnnotation(PdfAnnotation.createFileAttachment(writer,
new Rectangle(100f, 650f, 150f, 700f), "This is some
text", "some text".getBytes(), null, "some2.txt"));

b) An attachment attached to the PDF

  writer.addFileAttachment("This is some text", "some
text".getBytes(), null, "some.txt");


Method b) will enable the Save Dialog in the
Attachment Pane, whereas a) will not. The only way to
issue a save is rightclick on the annotation hotspot.

I did not find an option to actually reproduce a
hotspot with attachment link like a) in adobe acrobat
to see if the pdf performs the same...

Whats the difference between the two ? I want a
reference in my pdf and the save button should work in
the attachment pane...



--- Harakiri <[EMAIL PROTECTED]> wrote:

> I just noticed something odd - if i create a blank
> pdf
> using Adobe Prof 8.1 and then use itext PdfStamper
> to
> add an attachment, then the Save Attachment Dialog
> is
> enabled !
> 
> What that means is that there seem to specific data
> related to the pdf itself - it has nothing todo with
> annotations - if itext would simply copy the
> structure
> of a blank document created by acrobat then it
> should
> work with new documents too i guess.
> 
> 
> 
> --- Harakiri <[EMAIL PROTECTED]> wrote:
> 
> > Thanks Bruno for your answer.
> > 
> > Do you happend to know how/who contact at adobe
> > ([EMAIL PROTECTED] obviously will not work for
> this
> > specific question).
> > 
> > I will attach a sample pdf created by adobe prof
> 8.1
> > -
> > maybe you can see through a hexeditor if they have
> a
> > special attribute ?
> > 
> > 
> > --- Bruno Lowagie <[EMAIL PROTECTED]> wrote:
> > 
> > > Harakiri wrote:
> > > > I've installed the adobe prof. 8 trial and
> > created
> > > a
> > > > blank pdf with an attachment. When opening
> this
> > > pdf in
> > > > either 7 or 8.0 the "Save" button is enabled.
> > > Creating
> > > > a similar PDF in itext and the "Save" button
> is
> > > not
> > > > enabled - only the "Open" button.
> > > > 
> > > > So either this leaves two options :
> > > > 
> > > > a) either i have to set additional security
> > > > preferences (allow) using itext - but i
> thought
> > i
> > > > allowed everything
> > > > b) this is a special feature by adobe prof.
> and
> > > itext
> > > > does not support the "Save" button yet...
> > > > 
> > > > Any ideas ?
> > > 
> > > I think this is a question for somebody at
> Adobe.
> > > I've seen similar things I found odd while
> making
> > > portable collections.
> > > br,
> > > Bruno
> > > 
> > >
> >
>
-------------------------------------------------------------------------
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2
> > > express and take
> > > control of your XML. No limits. Just data. Click
> > to
> > > get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > _______________________________________________
> > > iText-questions mailing list
> > > iText-questions@lists.sourceforge.net
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/itext-questions
> > > Buy the iText book:
> > > http://itext.ugent.be/itext-in-action/
> > > 
> > 
> > 
> > 
> >  
> >
>
____________________________________________________________________________________
> > No need to miss a message. Get email on-the-go 
> > with Yahoo! Mail for Mobile. Get started.
> > http://mobile.yahoo.com/mail >
>
-------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2
> > express and take
> > control of your XML. No limits. Just data. Click
> to
> > get it now.
> > http://sourceforge.net/powerbar/db2/>
> _______________________________________________
> > iText-questions mailing list
> > iText-questions@lists.sourceforge.net
> >
>
https://lists.sourceforge.net/lists/listinfo/itext-questions
> > Buy the iText book:
> > http://itext.ugent.be/itext-in-action/
> > 
> 
> 
> 
>  
>
____________________________________________________________________________________
> We won't tell. Get more on shows you hate to love 
> (and love to hate): Yahoo! TV's Guilty Pleasures
> list.
> http://tv.yahoo.com/collections/265 
> 
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2
> express and take
> control of your XML. No limits. Just data. Click to
> get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book:
> http://itext.ugent.be/itext-in-action/
> 



       
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for 
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to