When using PdfAnnotation.createFileAttachment()...
and
annot.setFlags(PdfAnnotation.FLAGS_TOGGLENOVIEW);

Upon double-click on the file attachment, Acrobat returns a pop-up with the
wonderfully helpful message "There was an error processing an annotation or
link. There was a problem reading this document (14)."
A second attempt then succeeds without the warning

Unfortunately, I don't know how to convince the Acrobat Reader how to 
a) provide a more helpful message or
b) turn on a debug mode with verbose output ("-debug" isn't it :( )
c) even allow to provide a pdf document structure dump
Any hints on this are highly appreciated (or hints for alternative free/open
source pdf debugging/analysis/diagnosis tools).

Finally, took
  annot.setFlags(PdfAnnotation.FLAGS_INVISIBLE);
instead that has a similar effect, but not the error;

This is related to an even worse problem in acrobat 9
http://sourceforge.net/mailarchive/forum.php?thread_name=20105079.post%40tal
k.nabble.com&forum_name=itext-questions 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to