On Fri, 27 Jul 2012 19:29:12 +0000, Brian Holmes
<brian.hol...@etcconnect.com> wrote:
> I'm trying to import a pdf into a new document but have 2 pages within a
> single page.  Unfortunately the output keeps repeating the first 2
pages. 
> Could you be of assistance with how my code (below) should be modified? 


This looks all wrong:
> if (i % 2 == 0)
>     {
>         table.CompleteRow();
>         document.Add(table);
>         table.DeleteLastRow();
>         document.NewPage();
>     }

I've never seen that kind of construction.
What are you trying to achieve?
Seems like you're always adding the same row deliberately.

If you want 2 pages next to eachother on one page,
why don't you create a new PdfPTable with one row and two columns
for every two pages?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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