We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.Pdf merging multiple .pdf files with varying orientation etc

Hi,

I am writing an application for merging multiple .pdf files from/to streams. I am currently using the doc.Pages.Add(ICollection Pages) method as suggested here, but if one of the files has a different orientetion (landscape) than previous ones, in the resulting file those pages came out as blank ones (portrait). I suppose I need to do some checks on orientation or height/width and/or some other properties to get this to work. Could you please give me some directions?? preferably using the samples you have provided on Github

Regards,
Torgeir

@brmykleb,

Can you please share source files along with sample project and generated result so that we may further investigate to help you out.