Please help. Thanks.
Sarah

Sarah1 wrote:
> 
> Hi,
> 
> I'm playing RegisterForm1.java. I want to add an extra same 2nd table on a
> new page. All the fields on 2 pages are named differently. But I fount 
> both tables are on different page, and they looks fine, but the positions
> of the fields on 1st page are moved to 2nd page. Could you tell me why?
> Please see the attached pdf file. 
> http://www.nabble.com/file/p15299931/register_form1.pdf register_form1.pdf 
> 
> This is my code:
> ***********************************************
> Document document = new Document();
> try {
> PdfWriter writer = PdfWriter.getInstance(document, new
> FileOutputStream("C:/register_form1.pdf"));   
> document.open();
>       
> PdfFormField person = PdfFormField.createEmpty(writer);
> person.setFieldName("person");
> document.add(createTable(writer, person, 1));
> document.newPage();
> document.add(createTable(writer, person, 2));
> writer.addAnnotation(person);
> } catch (DocumentException de) {
>       System.err.println(de.getMessage());
> } catch (IOException ioe) {
>       System.err.println(ioe.getMessage());
> }             
> document.close();
> ************************************************
> 
> Thanks.
> 
> Sarah
> 

-- 
View this message in context: 
http://www.nabble.com/why-pdf-fields-of-1st-page-move-to-2nd-page-tp15299931p15435100.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to