Thanks! Works great!
Jim
-----Original Message-----
From: "Paulo Soares" <[EMAIL PROTECTED]>
To: "Jim Bethancourt" <[EMAIL PROTECTED]>,
<[email protected]>
Date: Fri, 24 Mar 2006 10:31:24 -0000
Subject: RE: [iText-questions] Need help right justifying AcroFields
> AcroFields af = stamper.getAcroFields();
> AcroFields.Item item = af.getFieldItem("field_name");
> PdfDictionary widget = (PdfDictionary)item.widgets.get(0);
> PdfDictionary merged = (PdfDictionary)item.merged.get(0);
> PdfNumber align = new PdfNumber(PdfFormField.Q_RIGHT);
> widget.put(PdfName.Q, align);
> merged.put(PdfName.Q, align);
> af.setField("field_name", "1000.00");
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Jim Bethancourt
> > Sent: Thursday, March 23, 2006 11:22 PM
> > To: [email protected]
> > Subject: [iText-questions] Need help right justifying AcroFields
> >
> > Hello all,
> > I'm using a PDFStamper and dynamically putting number data in
> > AcroFields
> > for an existing PDF designed with Adobe tools. I would like to right
> > justify the numerical text in the AcroFields. I've looked
> > around a while
> > and haven't had any luck regarding how to justify text in
> > AcroFields. If
> > you could pelase help with some suggestions, I'd really appreciate
> it.
> >
> > Thank you,
> > Jim
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking
> > scripting language
> > that extends applications into web and mobile media. Attend
> > the live webcast
> > and join the prime developer group breaking into this new
> > coding territory!
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&
> > dat=121642
> > _______________________________________________
> > iText-questions mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions