For this case, us are using the one large file (420 x 297 mm), a a4 file (210 x 297 mm) and the code below (the files for are attached):
//Directory where the file are locate
String workingDir = “insertWorkDirHere… C:/…”;
PdfFileEditor fileEditor = new PdfFileEditor();
//New Output File
FileOutputStream os = new FileOutputStream(workingDir + “output.pdf”);
//New array of InputStream
InputStream input = new InputStream;
//The first inputStream
input = new FileInputStream(workingDir + “large_file.pdf”);
//The second inputStream
input = new FileInputStream(workingDir + “a4_file.pdf”);
fileEditor.makeNUp(input, os, true);
In the output.pdf file the page of the large_file.pdf has been rotated. Is there any way to not execute page rotation?
Thank you for contacting support.
We have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFJAVA-37794 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.
We are sorry for the inconvenience.