Free Support Forum - aspose.com

Aspose.Cells Save to PDF issue with shapes on .NET Standard

Hi,

We’ve used Aspose.Cells for many years with the last step in our process to produce a PDF document.

We’re currently using v17.1.0 on the full framework as this is the version that renders shapes correctly. We would dearly like to move to .NET Standard and so it would be great to get this bug resolved.

For example, the Excel Workbook updated and saved via Aspose.Cells looks like the below (this also renders correctly if I use 17.1.0 on the full framework):

ExcelTemplate.png (77.1 KB)

If I try and output the Excel using the latest version (v19+), I get something like (don’t worry about the colours - they get changed programmatically - its the positioning/size of the boxes that don’t match the Excel):
AsposePDF.png (167.0 KB)

Can you please look at this, as it is preventing us from upgrading our infrastructure.

Cheers,
Dave

@darcher,
Please share your sample files and runnable console application with us for our testing. We will reproduce the problem and provide our feedback after analysis.

Hi @ahsaniqbalsidiqui,

Please find the source code example here Sample Code

You can see below the differences in Performance Overview tab and equivalent PDF page:
perfOverviewTab.png (187.9 KB)

and

pdfEquiv.png (107.3 KB)

Cheers,
Dave

@darcher,
Thanks for the feedback. We will share our feedback soon.

@darcher,
I have tried your sample project but could not observe any issue. My environment is Windows 7, Visual Studio 2019, .NET Core 3.0. I tried using the libraries from both NuGet package manager and by manually adding the .NET standard version from the download section. Could you please provide us your environment details for our reference. We will try to reproduce the issue here and provide assistance accordingly.

Hi @ahsaniqbalsidiqui,

I’m using VS 2019 with .Net Core 3.0 on Windows 10. The libraries (Aspose) are from Nuget.

I downloaded the code from the link attached, compiled and ran, and the images are still wonky in the PDF (specifically, I’m looking at p10 titled performance overview). These images are dynamic shapes.

@darcher,
Could you please share output PDF file for our reference.

Hi @ahsaniqbalsidiqui,

Attached is both the Excel and PDF output. Please note the Performance Overview tab and PDF page as a reference to the issue.

Output

Cheers,
Dave

@darcher,
we need to look into it more. We have logged the issue in our database for investigations. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSNET-47049 - Save to PDF issue with shapes on .NET Standard