We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Saving pdf -> pptx does not work under Linux (docker)

Saving pdf -> pptx does not work under Linux (docker)
Under windows 10, this works. Under linux, saving to stream or to file does not work. When saving to a file, an empty pptx file is created. I tried different pdf documents and different versions of net core 2.1-3.1
Error: в System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)\n в System.Collections.Generic.Dictionary2.FindEntry(TKey key)\n в System.Collections.Generic.Dictionary2.TryGetValue(TKey key, TValue& value)\n в #=zzrt3GNbxG7wFhEl7PFOzzaD3Ck5HOTHXkg==.#=zevdp6LA=(#=zYs6wOhg= #=z9$wbHc0=)\n в #=zRdZvs$Ece9rMyEczFEf9dcc5j01vxZ5C3w==.#=zIwvnnOlZy6BB.#=zvOHy7CA7euyE(#=zYs6wOhg= #=z9$wbHc0=, #=zzkYF4Hg=& #=zmKVU4yo=)\n в #=zK9FEIoyaDxuzPl42VzY_nA9qc34mZ$AJfRAHohs=.#=zuW5RA9R15gE3(#=zabz32JGQU65pnzKVrmhbDfDB42A7 #=zpDb4LCxF6DWM)\n в #=z_DdlHhocZ9HZjb4zkXnLnJhq0EesQSJNbS8sOJKzER4L.#=zqigxvCV5U2yX()\n в #=z_DdlHhocZ9HZjb4zkXnLnJhq0EesQSJNbS8sOJKzER4L.#=z51EZ52o=()\n в #=z7dhpk_vfEIz7FfPz6cbysN2Nf$sbQdmzGJblFZb7gfpq.#=zj89OGJo=(#=zcpBbI1lLM8p$PHKipb0BVm_5LgLq #=zcFgz3wE=, #=zv1LTyf_nD_SUZY4b$HG3DueGB_0IFU$zvg== #=zvY3BxxQ=, #=zNZBu6ev$eg5$HS2CqfQEhPvImruAJQOOMO1bFj6AV1ey #=zHYBAOV0=)\n в #=zFBwsVU4TpceSwpPU4UVunKjb8RdLA2kGRA==.#=z93vHOaU=(Int32 #=z30mkLh4=, IList`1 #=zdkFV$Y$P4Ih$cfeYvQ==, #=zODu7ZKI_fxRb #=z6kyb3aM=)\n в #=zFBwsVU4TpceSwpPU4UVunKjb8RdLA2kGRA==.#=zj89OGJo=()\n в #=zh2eJaakZn9nv3iY9x5Ol586yL4C8.#=z5z_fW4U4O08t(Document #=zcFgz3wE=, #=zNZBu6ev$eg5$HS2CqfQEhPvImruAJQOOMO1bFj6AV1ey& #=zeNTDriZUYfFA1f5HXg==, UnifiedSaveOptions #=zuePxi$M=, Int32& #=zksCPAe6oCs1B, Boolean #=zq__$cj8=)\n в #=zk3qqpKrJ3GFHBc3EF_IbPEIS2YCMyuWO1w==.#=zRJreogk=(Document #=zcFgz3wE=, Stream #=z6nozkAeK$NlS, PptxSaveOptions #=zuePxi$M=)\n в Aspose.Pdf.Document.#=zYI$W0LMGXYgC(Stream #=zykDMhKF5zYK4, SaveOptions #=zuePxi$M=)\n в Aspose.Pdf.Document.#=zYI$W0LMGXYgC(String #=zKB2HGNZAmo5E, SaveFormat #=z1PFtN6M=)\n в Aspose.Pdf.Document.Save(String outputFileName, SaveFormat format)\n в PDF_PPTX_WEB.Program.Main(String[] args) в C:\Users\sergey\source\repos\PDF_PPTX_WEB\PDF_PPTX_WEB\Program.cs:строка 22
Value cannot be null. (Parameter ‘key’)

PDF_PPTX_WEB.zip (579.0 KB)
pdf_pptx_error.JPG (297.8 KB)

@kkot86,

Thanks for contacting support.

Can you please share complete environment details with us for further investigation so that we may help you out.

Visual Studio Community 2019
Version 16.4.5
Client: Docker Engine - Community
Version: 19.03.8
API version: 1.40
Go version: go1.12.17
Git commit: afacb8b
Built: Wed Mar 11 01:23:10 2020
OS/Arch: windows/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 19.03.8
API version: 1.40 (minimum version 1.12)
Go version: go1.12.17
Git commit: afacb8b
Built: Wed Mar 11 01:29:16 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.2.13
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683

Docker config (VS)

FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443

FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
WORKDIR /src
COPY [“PDF_PPTX_WEB/PDF_PPTX_WEB.csproj”, “PDF_PPTX_WEB/”]
RUN dotnet restore “PDF_PPTX_WEB/PDF_PPTX_WEB.csproj”
COPY . .
WORKDIR “/src/PDF_PPTX_WEB”
RUN dotnet build “PDF_PPTX_WEB.csproj” -c Release -o /app/build

FROM build AS publish
RUN dotnet publish “PDF_PPTX_WEB.csproj” -c Release -o /app/publish

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT [“dotnet”, “PDF_PPTX_WEB.dll”]

in PDF_PPTX_WEB.zip file - project with this error (in main method)
in pdf_pptx_error.JPG screenshot of this error

What other data do you need to provide?

@kkot86,

I have observed your issue and like to inform that I have created investigation ticket with ID PDFNET-48129 in our issue tracking system to investigate and resolve this issue as soon possible.