I am looping an array list adding each 1 page pdf file to the first pdf file and it works fine. After I run the following code I get an expected output of:
Added C:\My Stuff\File 2.pdf to C:\My Stuff\File 1.pdf Added C:\My Stuff\File 3.pdf to C:\My Stuff\File 1.pdf
However what is odd is that when I open File1.pdf, it is 4 pages not 3 and in a wierd order. Page1 is File1 and has a footer of C:\My Stuff\File 1.pdf • 1 Page2 is File3 and has a footer of C:\My Stuff\File 3.pdf • 1 Page3 is File2 and has a footer of C:\My Stuff\File 2.pdf • 2 Page4 is blank and has a footer of C:\My Stuff\File 3.pdf • 2
I was able to reproduce the issue using only the Combine PDF files sample code (Variant1) with no customizing so this might be a bug. Can anyone confirm for me?
For Example: Take 3 one page simple PDFfiles (File1.pdf, File2.pdf, File3.pdf). Combine File1.pdf and File2.pdf into a new file named Combined.pdf. Open it and see that it is only 2 pages, just as we expected.
No take Combined.pdf and File3.pdf and combine them into a new file named Final.pdf. Open Final.pdf to see that it is 4 pages, not 3 as expected and the pages are out of order.
|