Zoom document while merge PDF file with ASPOSE.PDF

Hi Suppoet,

We are merging multiple PDF files into one PDF and upload the same in azure blob storage. It’s wotking fine for most cases but we observed that in some cases PDF merged with zoomed content so its extrimly diffecult to read ot even view the content.

We are using below code to achive the funcationality.

foreach (var fileItem in fileList)
{
string fileType = Path.GetExtension(fileItem).Replace(“.”, “”);
if (fileType == Enumeration.FileType.PDF.ToString().ToLower())
{
MemoryStream fileStream = await _blobStorageHelper.DownloadBolbDocumentAsync(fileItem, Entity.Load.ToString().ToLower());

                    Document pdfDocument = new Document(fileStream);
                    invoiceDocument.Pages.Add(pdfDocument.Pages);
                }
            }

            //Set Page size to legal
            PageCollection pageCollection = invoiceDocument.Pages;
            foreach (var item in pageCollection)
            {
                item.SetPageSize(PageSize.PageLegal.Width, PageSize.PageLegal.Height);
            }
            invoiceDocument.SetTitle(Constants.Constants.InvoicePDF);


            using (MemoryStream ms = new MemoryStream())
            {
                invoiceDocument.Save(ms);
                DocumentViewModel documentViewModel = new DocumentViewModel();
                documentViewModel = await _blobStorageHelper.UploadAsync(Constants.Constants.BlobContainerName, EnumUtils.StringValueOf(DocumentType.Invoice), null, ms);
                documentModel.Name = documentViewModel.Name;
                documentModel.DocumentPath = documentViewModel.DocumentPath;
            }

ASPOSE_Merge_zoom_issue.png (40.5 KB)

In screenshot you can see that page 2 is zoomed. We have also attached screenshot of original pdf so that you can compare output of merged PDF.
Original page 2.jpg (257.6 KB)

We have tried and search multiple options but unable to figure out above mentioned issue. Can you please help us to resolve the issue.

apologies for not uploading original document due to contractual limitations.

Thanks in advance.

@devashish55

Would you please ensure that you are using the latest version of the API i.e. 24.4? Also, we do need sample PDF documents in order to replicate the issue in our environment. We assure you that we only use them for testing purposes and remove from our system once the investigation is done. Please provide sample files so that we can try to replicate the issue in our environment and address it accordingly.

Sure @asad.ali

As discussed. We have attached PDF document herewith.

Input -
POD_1004806.pdf (712.1 KB)

Output -
2500314 (1).pdf (842.5 KB)

In above document you can see that input document is merged in zoomed format in output document, which is an issue. Please let us know in case of any further information required.

Thanks,

@devashish55

We were able to replicate the issue in our environment using 24.4 and the below code snippet:

var doc1 = new Document();
doc1.Pages.Add();
var doc2 = new Document(dataDir + "POD_1004806.pdf");

doc1.Pages.Add(doc2.Pages);
doc1.Save(dataDir + "mergedpdfs.pdf");

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-57163

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@asad.ali Hello,

Is there any progress on this as our client is facing above mentioned issue which impacting day to day business operations?

Thanks in advance.

@devashish55

The ticket has recently been logged in our issue management system and as per the free support policies, it will be investigated/resolved on a first come first serve basis. We are afraid that we cannot share any update at the moment about resolution progress of the ticket as its investigation is pending. Once have some updates in this regard, we will inform you via this forum thread. Please spare us some time.

We are sorry for the inconvenience.

Hello @asad.ali

Just wanted to follow-up on this ticket. It has been almost a month and still we haven’t received any solution. It is impacting our client’s business as due to this issue invoices are not getting generated in proper format. Hence it requires manual effort and delays the overall accounting process. We really need to ETA on this as it is business critical issue for us.

Thanks.

@devashish55

As shared earlier, the ticket will be prioritized on a first come first serve basis as per free support policies and we are really sorry that we cannot share any ETA at the moment. The ticket has not been fully analyzed yet due to other issues in the queue. You can also check our paid support option in case issue is critical and you need to get it resolved on an urgent basis.

Furthermore, we have recorded your concerns as well along with the ticket that was logged. We will surely inform you once we have some updates about its fix or resolution. Please spare us some time.

We apologize for the inconvenience.

Thank you for your response.

Could you please provide us with a reference link to understand the overall pricing structure for paid support?

Additionally, if we opt for paid support, how much time would it typically take to resolve the issue mentioned above? Please provide these details as well.

@devashish55

You can please create a post in our purchase forum where you will get all price related information.

Once you escalate the ticket using paid support option, it will be moved to the highest priority and its investigation will be started on urgent basis. This will help you in getting the ETA quicker. The resolution time or ETA will be shared after investigating the ticket. Overall, the issue will be resolved a lot sooner than it will get under free support model.

The issues you have found earlier (filed as PDFNET-57163) have been fixed in Aspose.PDF for .NET 24.7. This message was posted using Bugs notification tool by asad.ali