Pdf file merge issue

Hi Team, Please refer below link where Aspose.Cells team suggested to use Aspose.pdf license, so need your assistance on the same.
Link: https://forum.aspose.com/t/merging-page-content-into-one-page-if-there-is-enough-space-while-converting-excel-file-to-pdf-using-aspose-license/313247/1

Note: Request your support email id where I can share my sample project file.

@prathameshjoshi

Cause It appears you are attempting to merge PDF files and may require assistance with licensing for Aspose.PDF, as indicated by the Aspose.Cells team. The merging process often necessitates a valid license to function correctly, particularly for advanced features. Solution To merge PDF files using Aspose.PDF, you can utilize the Document.Merge method. Here’s a basic example of how to do this: ```csharp
using Aspose.Pdf; public void MergePdfFiles(string[] pdfFiles, string outputFile)
{ // Create a new Document Document mergedDocument = new Document(); foreach (string pdfFile in pdfFiles) { // Load each PDF file Document tempDoc = new Document(pdfFile); // Merge the current document into the merged document mergedDocument.Merge(tempDoc); } // Save the merged document mergedDocument.Save(outputFile);
}

2. Test the merging functionality using the provided code snippet.
3. If you encounter any issues, please share your sample project file for further assistance. For support, you can reach out to our support team via the official support email found on the Aspose website. Please let me know if you need any further assistance!

please share official support email id for further assistance.

@prathameshjoshi

We have gone through the referenced thread and it looks like you have custom scenario where you want to merge content of two PDF page to fill the blank space on single page and further check tables if they can fit onto single page or not and adjust them accordingly.

Please note that Aspose.PDF for .NET offers a feature to merge multiple PDF files into single PDF document. It also gives you a feature to use PDF Page Stamps with which you can stamp a page with the content of another page. Please check below links for reference:

In case above information doesn’t help, can you please share sample source PDF along with an expected output so that we can test the scenario in our environment and address it accordingly.

I believe there’s been a misunderstanding. I want to merge the content within a single PDF file by filling in the blank spaces between two pages

and I’d like to share the expected output PDF file, but I’m currently unable to upload it. Could you please provide an email address where I can send the sample file along with the source code?

Awaiting the support email ID for further communication.

@prathameshjoshi

We encourage providing support via our dedicated forum. If you are facing file upload issue due to size limitations, you can please upload the file or files to Dropbox or Google Drive and share the link with us. In case file format is an issue, please add the files to .zip archive and then upload here. We will further proceed to assist you accordingly.

Hi, due to restrictions on external links, I’m requesting the support email address directly. Thank you!

@prathameshjoshi

As shared earlier, we encourage communication through our dedicated support forum and we do not share any email as per our policies. If you are not comfortable sharing the files link over here, you can share them in private message which will be a channel only between you and Aspose. You can simply click on username and press Blue Message button to send a private message.

Excel and Pdf file.zip (3.8 MB)

Pls find attach sample file of excel & pdf (output generated & expected pdf ) files

@prathameshjoshi

We have checked the files you have shared. It looks like that you are using trial version of Aspose.Cell without license to produce PDF. We used Aspose.Cells for .NET with valid license in our environment to convert your Excel file and obtained attached PDF.
EIALStandalone_test.pdf (389.9 KB)

We also check the expected PDF document that you want to achieve finally. We noticed that only difference between expected and currently generated PDF was color for the table headers and borders. Please note that Aspose.Cells mimics the behavior of MS Excel and you will obtain nearly same output that you can from converting your Excel file into PDF using MS Excel (Office).

Please check the attached output for your kind reference and try to use the API with a valid or 30-days free temporary license. In case you still face any issues, please let us know.

Hi,

For your information, we are also using a valid license.

Regarding the generated output PDF file, we have noted the following observations:

  1. Some text appears to be missing on pages 3 and 5 of the PDF.

  2. We would like the content on page 9 to be merged into page 8, as there is sufficient blank space available.

Our goal is to ensure that the data from the Excel sheets is merged and displayed continuously in the PDF wherever possible.

To achieve this, the Aspose.Cells support team has recommended using an Aspose.PDF license. Therefore, we kindly request you to provide the relevant code snippets for implementing this.

@prathameshjoshi

Your process contains two phases:

1- Generate PDF from Excel using Aspose.Cells
2- Modify obtained PDF to remove blank space on pages and merge content of different pages into single one

For 1st phase, there are some issues related to missing text and data in the output PDF that is caused during the usage of Aspose.Cells and we request you to mention this in the same thread that you referred in the first place so that this issue can be addressed in Aspose.Cells and a fix can be delivered.

For 2nd phase where you want to edit the PDF using Aspose.PDF, it is quite complex requirement and we need to analyze if it is feasible or any workaround can be implemented in the API for this or not. For the purpose, we have logged an investigation ticket as PDFNET-60173 in our issue management system. We will look into its details and keep you posted with the status of its correction. Please be patient and spare us some time. We are sorry for the inconvenience.

Kindly share a tentative timeline for the second point, as I am currently using a temporary license (Aspose.PDF) that expires on 10/07/2025.

@prathameshjoshi

The issue has been created recently and will be prioritized on first come first serve basis. We are not able to share any tentative timeline for now sadly because investigation is pending. We will let you know as soon as we make some progress towards ticket resolution. Please be patient and spare us some time.

We are sorry for the inconvenience.

Noted, as mentioned earlier, this solution is critical to us. Look forward to an update at the earliest

@prathameshjoshi

Sure, as soon as we have some updates, we will inform you.

Hi, just checking in, if there has been any progress made around the solution

@prathameshjoshi

The ticket has recently been logged in our issue management systema and we will prioritize it on a first come first serve basis. As soon as we make some progress towards its resolution, we will inform you. Please be patient and spare us some time.

We are sorry for the inconvenience.