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

Free Support Forum - aspose.com

Rotate PDF to NUP

page_nup.pdf (1.9 MB)
page_original.pdf (1.8 MB)
NUP does not rotate the rotated original file

@hbhur102

Would you kindly share the sample code snippet that you have tried at your side. We will test the scenario in our environment and address it accordingly.

                    MemoryStream[] outBuffer = pdfEditor.SplitToPages(dataDir + "\\" + name + ext);

                    // Save individual files

                    Document pdfDocument2 = new Document(".\\nup.pdf");
                    int fileNumber = 1;

                    foreach (MemoryStream aStream in outBuffer)

                    {

                        FileStream outStream = new FileStream(dataDir3 +"\\"+ "File_" + fileNumber.ToString() + "_out.pdf", FileMode.Create);

                        aStream.WriteTo(outStream);

                        outStream.Close();

                        if(fileNumber % 2 == 0)
                        {
                            Document pdfDocument3 = new Document(dataDir3 + "\\" + "File_" + fileNumber.ToString() + "_out.pdf");

                            //pdfDocument3.Pages[1].Rotate = Aspose.Pdf.Rotation.On180;
                            pdfDocument3.Pages[1].Rotate = Aspose.Pdf.Rotation.on180;
                            Console.WriteLine(pdfDocument3.Pages[1].Rotate);
                            pdfDocument3.Save(dataDir3 + "\\" + "File_" + fileNumber.ToString() + "_out.pdf");
                        }
                        fileNumber++;
                    }

                    for (int j = 0; j < 24; j++)
                    {
                        Document pdfDocument = new Document(dataDir3 + "\\" + "File_" + AA[j].ToString() + "_out.pdf");

                        pdfDocument2.Pages.Add(pdfDocument.Pages);
                    }

                    pdfDocument2.Pages.Delete(1);

                    pdfDocument2.Save(dataDir3 + "\\" + name + ext);


                    PdfFileEditor pdfEditor2 = new PdfFileEditor();

                    PageSize pageSize = new PageSize((float)(16.535433 * 72), (float)(11.692913 * 72));
                    pageSize.IsLandscape = true;

                    pdfEditor2.MakeNUp(dataDir3 + "\\" + name + ext, dataDir2 + "\\" + name + "(수정)" + ext, 2, 1, pageSize);

@hbhur102

Thanks for sharing sample code snippet.

We have checked your code snippet and noticed that it involves more than one PDF file. Furthermore, would you please elaborate a bit more about the issue that you are facing. We have also checked the output PDF document that you shared and could not notice any issue in it. Would you kindly share a code snippet that can be used to replicate the same issue which you are facing. We will again test the scenario in our environment and address it accordingly.

The original file and the NUP file and the result file I want
are only partially shared because the file is large.

pages-original.pdf (1.8 MB)

pages-nup.pdf (1.8 MB)
pages-wanted.pdf (1.8 MB)

@hbhur102

We were able to notice the issue in our environment while using following code snippet with Aspose.PDF for NET 20.5.

Document pdfDocument2 = new Document(dataDir + "pages-original.pdf");
pdfDocument2.Pages[3].Rotate = pdfDocument2.Pages[4].Rotate = Rotation.on180;
pdfDocument2.Save(dataDir + "output20.5.pdf");
var pdfEditor = new Facades.PdfFileEditor();
PageSize pageSize = new PageSize((float)(16.535433 * 72), (float)(11.692913 * 72));
pageSize.IsLandscape = true;
pdfEditor.MakeNUp(dataDir + "output20.5.pdf", dataDir + "merge_pdf_out.pdf", 2, 1, pageSize);

Therefore, we have logged an issue as PDFNET-48167 in our issue tracking system. We will further look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.

I am currently working with your library and need to manually rotate it 180 degrees. We urge you to fix it in a short time.

@hbhur102

We have recorded your concerns and will surely take care of them during issue investigation. However, please note that the issue is logged under normal support and it will be investigated and resolved on a first come first serve basis. We will surely inform you as soon as the issue is resolved. Please spare us some time.

We are sorry for the inconvenience.

When will the issue as PDFNET-48167 be completed???

@hbhur102

We are afraid that we cannot share any ETA at the moment as issue needs more time for investigation. We will surely investigate it and provide you an update as per the schedule. Please spare us some time.

We are sorry for the inconvenience.