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);