>I take the form after it's been populated by iText, if I call for it's
AcroForm, I get back a null.

Do you close the stamper and read the document again? And then its null?
That would be indeed weird.
So try the following - re-read the file you filled with iText from your
localdisk and get the acroform and e.g. print out all fields and values.
Is that working?


2013/8/2 Josh Smith <jesmit...@gmail.com>

> It does seem to work before It goes through iText.
>
> I am setting the fields like this.
>
>
> PdfStamper stamp = new PdfStamper(
>           new PdfReader(templateBody), output, '\0');
>       AcroFields form = stamp.getAcroFields();
>       for (String key : form.getFields().keySet()) {
>         if (dataLoad.has(key)) {
>           form.setField(key, dataLoad.getString(key));
>         }
>       }
>       stamp.close();
>       output.flush();
>
> where "dataLoad" is a JSON object that contains the incoming data.
>
> --
> Josh Smith
> Sent with Sparrow <http://www.sparrowmailapp.com/?sig>
>
> On Friday, August 2, 2013 at 9:41 AM, TvT wrote:
>
> then there are two questions:
>
> - does the document works before you put it through iText?
> - How do you populate (=fill) its textfields?
>
>
> 2013/8/2 Josh Smith <jesmit...@gmail.com>
>
> These are textfields.
> They are not grouped in a hierarchy. All fields reside at the same level.
>
> In doing some more digging, I noticed that when I take the form after it's
> been populated by iText, if I call for it's AcroForm, I get back a null.
> But before iText processing, the AcroForm can be called to return the list
> of fields that exist.
>
> Could that be the problem? And if so, how can I change that.
>
> --
> Josh Smith
> Sent with Sparrow <http://www.sparrowmailapp.com/?sig>
>
> On Friday, August 2, 2013 at 5:15 AM, TvT wrote:
>
> With the functionality you describe do you mean autofill? So you fill one
> field and the others with the same name are automatically filled with the
> same content?
>
> I just tried a pdf of mine and it is working fine in chrome. I can now
> only think that chrome has a problem with a certain characteristics of your
> fields and then doesn't display anything at all. This could be anything but
> we would need to know more about your PDF.
>
> - what fields are we talking about here? Textfields?
> - do you group them in a hierarchy? So the name full name is
> SomeNameParent.Kid.one?
>
> If you have the adobe acrobat at hand, try to create a textfield with a
> simple name and copy it. Then open that in chrome and see that it is
> working fine. Then compare the differnce between those fields...
>
> TvT
>
>
>
> 2013/8/2 Josh Smith <jesmit...@gmail.com>
>
>  Unfortunately I don't have control of the end users computers to
> enforce that on everyone.
> I know its nit an iText issue but is there so change I can make via
> iText to the output to work around this?
>
> Sent from my iPhone
>
> On Aug 2, 2013, at 2:54 AM, iText Info <i...@1t3xt.info> wrote:
>
> > Op 1/08/2013 21:50, jesmith schreef:
> >> they are also
> >> displayed if I view the PDF in true client app (Mac Preview, or Adbobe
> >> Reader).
> > If Adobe Reader displays them and even Mac Preview displays them, but
> > not Chrome PDF Viewer (and probably not pdf.js in Firefox either), then
> > you're facing a problem many users have: the built-in viewers for Chrome
> > and Firefox ignore a large part of the PDF specification. The best way
> > to solve this, is to go to the configuration settings of these browsers
> > and switch to using the Adobe Reader plug-in instead of the built-in
> > viewer. It's the first thing I do with any new computer as I'm getting
> > too frustrated of opening a PDF in Chrome or Firefox seeing nothing but
> > a blank page whereas the PDF is 100% correct and shows the content
> > perfectly in Adobe Reader.
> >
> >
> ------------------------------------------------------------------------------
> > Get your SQL database under version control now!
> > Version control is standard for application code, but databases havent
> > caught up. So what steps can you take to put your SQL databases under
> > version control? Why should you start doing it? Read more to find out.
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> > _______________________________________________
> > iText-questions mailing list
> > iText-questions@lists.sourceforge.net
> > 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
>
>
> ------------------------------------------------------------------------------
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent
> caught up. So what steps can you take to put your SQL databases under
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> 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
>
>
>
> ------------------------------------------------------------------------------
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent
> caught up. So what steps can you take to put your SQL databases under
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> 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
>
>
>
>
> ------------------------------------------------------------------------------
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent
> caught up. So what steps can you take to put your SQL databases under
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> 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
>
>
>
> ------------------------------------------------------------------------------
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent
> caught up. So what steps can you take to put your SQL databases under
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> 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
>
>
>
>
> ------------------------------------------------------------------------------
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent
> caught up. So what steps can you take to put your SQL databases under
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> 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
>
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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

Reply via email to