I'm looping through my list, filling out a PDF Form, saving it to a temp file, opening said temp file, and attempting to insert that page into a new file for batch printing.
The first page in the PDF looks fine in the viewer, but the subsequent pages are all blank.
//Create Temp File string tempPathName = Path.GetTempFileName();
//Save current form to Temp File tempForm.Save(tempPathName);
//Open Temp File and import into batch file PdfDocument formPage = PdfReader.Open(tempPathName, PdfDocumentOpenMode.Import);
//I've tried both of these and they both produce blank pages after the first page batchForm.Pages.Add(formPage.Pages[0]); batchForm.InsertPage(pageCounter, formPage.Pages[0]);
pageCounter++;
The thing is, when I open the file in the "tempPathName" every one of them opens correctly populated so I know that generation is working correctly.
|