Positioning of data in fields
- From: Andy Levy <andy.levy (at) gmail.com>
- Date: Tue, 7 Feb 2006 12:52:50 -0500
After some final research and testing, we've found the culprit.
The misaligned fields have the "multiline" option set. When we
uncheck this option in Acrobat and then fill the PDFs via iText,
everything aligns as expected. We will have to go through all the
documents and make this change manually.
On 1/25/06, Andy Levy <andy.levy (at) gmail.com> wrote:
> Just to be clear, I'm not "complaining" - just trying to make sure I
> have all my facts straight before I tell people we'll have to fiddle
> with all 50-some PDFs we're working from just to resolve this
> alignment (to get them all consistent).
>
> On 1/25/06, Paulo Soares <psoares (at) consiste.pt> wrote:
> > You should complain to Adobe about that. The layout rules were never in the
> > specifications and Adobe did as it pleased it. Depending on the Acrobat
> > version the field when filled will be in a different position. It's not much
> > but if it's aligned with some static text it will show the offset.
> >
> > ----- Original Message -----
> > From: "Andy Levy" <andy.levy (at) gmail.com>
> > To: "Paulo Soares" <psoares (at) consiste.pt>
> > Cc: <itext-questions (at) lists.sourceforge.net>
> > Sent: Wednesday, January 25, 2006 9:31 PM
> > Subject: Re: [iText-questions] Positioning of data in fields
> >
> >
> > We're checking into it now. Does this act globally (all fields), or
> > is it on a per-field basis?
> >
> > If it's global, and we have different versions of Acrobat, this could
> > really get us crossed up, couldn't it? We compile our final PDF from
> > a number of PDFs and FDFs which have been created by several people
> > over an extended period of time. I don't know for certain yet (I'll
> > be checking tomorrow), but these various PDFs and FDFs have probably
> > been created with a few different releases of Acrobat.
> >
> > On 1/24/06, Paulo Soares <psoares (at) consiste.pt> wrote:
> > > Different Acrobat versions make different alignments. You need
> > > setExtraMargin to make this fine adjustment.
> > >
> > > > -----Original Message-----
> > > > From: Andy Levy [mailto:andy.levy (at) gmail.com]
> > > > Sent: Tuesday, January 24, 2006 4:13 PM
> > > > To: Paulo Soares
> > > > Cc: itext-questions (at) lists.sourceforge.net
> > > > Subject: Re: [iText-questions] Positioning of data in fields
> > > >
> > > > I'm now running 1.3.6 and the alignment issues remain. I don't see
> > > > any references to setExtraMargin in our code - is this something we'll
> > > > need to add to attempt to resolve this alignment?
> > > >
> > > > I looked at our source PDFs (which are getting filled in) and the
> > > > fields are exactly where we want them to be - but the contents appear
> > > > to be top-aligned, or even pushed high enough that they extend above
> > > > the top of the field box I see in Acrobat.
> > > >
> > > > On 1/4/06, Paulo Soares <psoares (at) consiste.pt> wrote:
> > > > > The change log is at http://www.lowagie.com/iText/history.html. Some
> > > > > fixes were made to better align the text to the available
> > > > field space.
> > > > > Later on, another fix was made to fine tune the field text position,
> > > > > AcroFields.setExtraMargin().
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: itext-questions-admin (at) lists.sourceforge.net
> > > > > > [mailto:itext-questions-admin (at) lists.sourceforge.net] On
> > > > > > Behalf Of Andy Levy
> > > > > > Sent: Wednesday, January 04, 2006 4:26 PM
> > > > > > To: itext-questions (at) lists.sourceforge.net
> > > > > > Subject: [iText-questions] Positioning of data in fields
> > > > > >
> > > > > > I would have searched the archives before posting this
> > > > but the site
> > > > > > isn't responding well for me right now.
> > > > > >
> > > > > > We use iText to fill in PDF forms for a web application
> > > > based on user
> > > > > > input. We recently upgraded to iText 1.3 in our development
> > > > > > environment to attempt to resolve some intermittent
> > > > problems we were
> > > > > > having. I don't know the version, but the timestamp on
> > > > the jarfile is
> > > > > > 9/24/05 (background: I'm not the developer on the
> > > > application, more
> > > > > > like the app manager, but I was a non-Java programmer in
> > > > a previous
> > > > > > life).
> > > > > >
> > > > > > Our application creates lease documents for apartments. We have a
> > > > > > "base" PDF for each state with fields for address, names,
> > > > etc. After
> > > > > > the upgrade, some (not all) of the fields that we fill in
> > > > from user
> > > > > > input have become misaligned - City, State and ZIP on the
> > > > address all
> > > > > > appear about 1/8 higher than they used to, while the
> > > > resident's name
> > > > > > remains in the correct location. The base PDFs haven't
> > > > changed (the
> > > > > > fields appear to be in the correct place, from what I can
> > > > tell), nor
> > > > > > has the code that fills these fields in (as far as I know).
> > > > > >
> > > > > > Our developer mentioned that there's a newer release of iText
> > > > > > available which "may or may not" fix the problem. I
> > > > wasn't able to
> > > > > > find a ChangeLog to see if there was a known issue that has been
> > > > > > addressed, and I'd prefer to not just throw new versions at the
> > > > > > problem hoping to find something that works. Is there a changelog
> > > > > > available?
> > > > > >
> > > > > >
> > > > > > -------------------------------------------------------
> > > > > > This SF.net email is sponsored by: Splunk Inc. Do you grep
> > > > > > through log files
> > > > > > for problems? Stop! Download the new AJAX search engine
> > > > that makes
> > > > > > searching your log files as easy as surfing the web.
> > > > > > DOWNLOAD SPLUNK!
> > > > > > http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
> > > > > > _______________________________________________
> > > > > > iText-questions mailing list
> > > > > > iText-questions (at) lists.sourceforge.net
> > > > > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Andy
> > > > http://home.rochester.rr.com/alevy/
> > > > ---
> > > > Never tell people how to do things. Tell them what to do and they will
> > > > surprise you with their ingenuity.
> > > > -George S. Patton
> > > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > > files
> > > for problems? Stop! Download the new AJAX search engine that makes
> > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> > > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
> > > _______________________________________________
> > > iText-questions mailing list
> > > iText-questions (at) lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > >
> >
> >
> > --
> > Andy
> > http://home.rochester.rr.com/alevy/
> > ---
> > Never tell people how to do things. Tell them what to do and they will
> > surprise you with their ingenuity.
> > -George S. Patton
> >
> >
>
>
> --
> Andy
> http://home.rochester.rr.com/alevy/
> ---
> Never tell people how to do things. Tell them what to do and they will
> surprise you with their ingenuity.
> -George S. Patton
>
--
Andy
http://home.rochester.rr.com/alevy/
---
Never tell people how to do things. Tell them what to do and they will
surprise you with their ingenuity.
-George S. Patton
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions