I have 2 pdf files that I am concatenating. The first file is portrait and the 2nd file is landscape.
When I concatenate the 2 files together the landscape orientation is not honored in the output pdf file.
I have tried the latest version of pdf (19.8) and get the same result.
If I switch the files around and put the landscape pdf first, the resulting pdf is correct ie the first page is landscape and the 2nd page is portrait.
I am using this code.
Dim pdfDocument1 As Aspose.Pdf.Document = Nothing
Dim pdfDocument2 As Aspose.Pdf.Document = Nothing
'Open first document
pdfDocument1 = New Aspose.Pdf.Document("c:\pdftest\03053-1INV017626.pdf")
'Open second document
pdfDocument2 = New Aspose.Pdf.Document("c:\pdftest\03053.pdf")
'Add pages of second document to the first
pdfDocument1.Pages.Add(pdfDocument2.Pages)
'Save concatenated output file
pdfDocument1.Save("c:\pdftest\concatfile.pdf")
03053.pdf (55.0 KB)
03053-1INV017626.pdf (130.3 KB)