What is this? Answer is to buy book?
Where and when can I expect answer?

--- On Wed, 3/21/12, Zoran Stojanovic <[email protected]> wrote:

> From: Zoran Stojanovic <[email protected]>
> Subject: [iText-questions] Top-Left and back
> To: [email protected]
> Date: Wednesday, March 21, 2012, 9:12 AM
> Hello,
> 
> I use latest version of iTextSharp on Win 7 Ultimate x64,
> Acrobat X Pro. All updates.
> I Use New.pdf as template to create another one, Move.pdf,
> and fill fields with data form Orig.pdf.
> It works fine, but there is one problem:
> If I open Move.pdf in Acrobat X Pro and click on edit fieled
> with text, the text moves top-left. If move focus to another
> field text goes back, bottom-right, on previous position. It
> is not problem with check box or radio buttons, only with
> ALL edit controls in Move.pdf.
> I send you all three files and code what I use to create
> it.You can see/test it on bottom edit field  in
> New.pdf.
> 
> How to fix it?
> 
> Zoran
> 
> 
>             string pdfTemplate
> = @"C:\Users\Administrator\Desktop\Orig.pdf";
>             string newFile =
> @"C:\Users\Administrator\Desktop\New.pdf";
>             string moveFile =
> @"C:\Users\Administrator\Desktop\Move.pdf";
> 
>             PdfReader
> pdfReader = new PdfReader(pdfTemplate);
>             PdfReader pdfNew =
> new PdfReader(newFile);
>             PdfStamper
> pdfStamper = new PdfStamper(pdfNew, new
>            
> FileStream(moveFile, FileMode.Create));
>         
>             AcroFields
> pdfFormFields = pdfReader.AcroFields;
>             AcroFields
> pdfMoveFields = pdfStamper.AcroFields;
> 
>             foreach
> (System.Collections.Generic.KeyValuePair<string,
>            
> iTextSharp.text.pdf.AcroFields.Item> de in
> pdfReader.AcroFields.Fields)
>             {   
>            
>              
>    pdfMoveFields.SetField(de.Key.ToString(),
> pdfFormFields.GetField(de.Key.ToString()));
>             }
> 
>            
> pdfStamper.Close();
> -----Inline Attachment Follows-----
> 
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here 
> http://p.sf.net/sfu/sfd2d-msazure
> -----Inline Attachment Follows-----
> 
> _______________________________________________
> 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

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
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

Reply via email to