Hello,
you have posted a mail to [email protected] but you
weren't subscribed.
You are receiving this answer because I've added your mail address in Bcc:
I will do this only once! Further answers will be sent to the
mailing-list only (you won't receive them if you don't subscribe).
Further questions to the mailing-list will be rejected unless you
subscribe. Further questions sent to the 1t3xt address will be ignored.
Please understand that, as long as you don't subscribe, somebody has to
MANUALLY approve your mail among a huge load of SPAM. You can help us
avoid this boring administrative job by following the rules:
http://itextpdf.com/support.php
Op 29/03/2011 19:35, Eli Yasnyi schreef:
> I have a pdf form which i prepopulate with data then email it. But
> the form fields dont seem to be in the new pdf the fields are filled
> out with the data but I cant access them when i try to get the fields
> from the new pdf the AcroFields.getFields() is empty.
>
>
> This is the loop where everything happens
>
> for (Organization theOrganization : organizations){
>
> if(env.equals("prod"))
> localToAddress =
> theOrganization.getUpdateContactPersonEmai();
> else
> localToAddress = toAddress;
>
> Document document = new Document();
>
> ByteArrayOutputStream theNewFile = new
> ByteArrayOutputStream();
>
> PdfCopy copy = new PdfCopy(document, theNewFile);
Stop right here!
This is documented in Chapter 6 of the book!
Go to http://affiliate.manning.com/idevaffiliate.php?id=223_212
Under resources, there's a column "Downloads".
Download chapter 6 and read why you shouldn't use PdfCopy in this context!
(A workaround is provided.)
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php