Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Fri Mar 17, 2023 3:04 am

Problem: Output PDF/A is not true to the original powerpoint file. Specifically, slide background and alpha in images weren't produced well.

Product: Spire.Officefor.NETStandard v8.2.2 on .NET 6

Input/Output: attached

Environment: Docker
Dockerfile
Code: Select all
FROM mcr.microsoft.com/dotnet/aspnet:6.0-focal
SHELL ["/bin/bash", "-c"]
RUN apt-get update && apt-get -y install fontconfig rsync libldap-2.4-2
RUN fc-cache -fv
RUN mkdir -p /app
WORKDIR /app


Code
Code: Select all
// target = net6.0

// csproj dependencies
<PackageReference Include="Spire.Officefor.NETStandard" Version="8.2.2"/>
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.3"/>

// code
var presentation = new Presentation(inputFilename);
var pdfOptions = new SlidesPdfOptions
{
    Compliance = Aspose.Slides.Export.PdfCompliance.PdfA1b
};
presentation.Save(outputPath, SlidesSaveFormat.Pdf, pdfOptions);


ButterCoconut
 
Posts: 2
Joined: Fri Mar 17, 2023 2:34 am

Tue Mar 21, 2023 11:00 am

Hi,

Thanks for your feedback.
We have done some tests and found that there is indeed an issue, though it appears to differ slightly from what you have reported. To help us reproduce your issue, could you please provide us with the operating system information of your host machine? In addition, please reconfirm if there are any errors in your code. Our Spire. Presentation does not provide such APIs. Thanks for your corporation.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 999
Joined: Tue Nov 15, 2022 3:59 am

Tue Mar 21, 2023 11:30 am

Thanks for your response. Here are requeste information:

- Host machine running Docker is Windows 11 Enterprise edition 22621.1413.
- No errors were reported

ButterCoconut
 
Posts: 2
Joined: Fri Mar 17, 2023 2:34 am

Wed Mar 22, 2023 10:48 am

Hi,

Thanks for your feedback.
Currently, we do not have a Windows 11 environment, so I tested the software on a Windows 10 system. The issues that arose during my testing differed from those you encountered, and I have attached my test results for your reference. Does this issue occur in both the local development environment and Docker?
In order to investigate this issue further, would it be possible for you to send us your complete project or image file via email? Thank you for your cooperation and prompt response.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 999
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.Presentation