Do you think that the command ".consolidateNamedDestinations()", present in
this code :
ByteArrayOutputStream baos = new ByteArrayOutputStream(10000);
PdfReader reader1 = new PdfReader("FILETemplate.PDF");
reader1.consolidateNamedDestinations();
PdfStamper stamp = new PdfStamper(reader1, baos);
AcroFields form = stamp.getAcroFields();
form.setField("Name", "Value");
form.setField("Name1", "Value"); form.setField("Name11",
"Value"); form.setField("Name2", "Value");
form.setField("Name22", "Value"); form.setField("Name3", "Value");
form.setField("Name33", "Value"); form.setField("Name4", "Value");
form.setField("Name44", "Value"); form.setField("Name5", "Value");
form.setField("Name55", "Value"); form.setField("Name6", "Value");
form.setField("Name66", "Value"); form.setField("Name7", "Value");
stamp.getWriter().flush();
Remove "the entries in the Fields dictionary" and create this problem?
Or can you tell me witch is the correct way to design the forms?
I know only the Acrobat Professional, this is the only one that help me to
positioning the fields, button etc, but is full of bug!
Thanks,
Aristide
Message: 2
Date: Thu, 29 Mar 2007 14:53:25 +0100
From: "Paulo Soares" <[EMAIL PROTECTED]>
Subject: Re: [iText-questions] Javascript
To: "Post all your questions about iText here"
<[email protected]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
The pdf is malformed. You have the field widgets but not the entries in
the Fields dictionary.
Paulo
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/