Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Aug 23, 2021 7:54 am

Hi

while converting the pptx to pdf using spire we run into the error

out of memory .

at System.Drawing.Bitmap..ctor(Stream stream)
at spr⺪..ctor(spr⺄ A_0, spr⶧ A_1)
at spr⺞.ᜀ(sprⶇ A_0, spr⺄ A_1)
at spr⺣.ᜁ(sprⶇ A_0)
at spr⺑.ᜀ(sprⶇ A_0, Boolean A_1, Single A_2)
at spr⺜.ᜀ(spr㈯ A_0)
at spr⺠.ᜀ(spr㈯ A_0)
at spr㈯.ᜀ(spr㈣ A_0)
at spr㈢.ᜁ(spr㈣ A_0)
at spr㈟.ᜀ(spr㈣ A_0)
at spr㈢.ᜁ(spr㈣ A_0)
at spr㈮.ᜀ(spr㈣ A_0)
at spr⺠.ᜀ(spr㈬ A_0)
at spr᧳.ᜀ(spr᝚ A_0, Stream A_1, spr᧯ A_2)
at spr᝚.ᜀ(Stream A_0, spr᧴ A_1, spr᧵ A_2)
at spr᝚.ᜀ(String A_0, spr᧴ A_1)
at Spire.Presentation.Presentation.SaveToFile(String file, FileFormat fileFormat)

Kindly help us resolve this issue

karendmello
 
Posts: 8
Joined: Mon Feb 08, 2021 1:33 pm

Mon Aug 23, 2021 8:14 am

I am unable to attach the template pptx file due to it being large in size .

please see the template file at

https://www.dropbox.com/s/k9b6sejnpe43i ... e.zip?dl=0

karendmello
 
Posts: 8
Joined: Mon Feb 08, 2021 1:33 pm

Mon Aug 23, 2021 1:15 pm

Hello,

Thanks for your email.

I tested your case with the latest Spire.Presentation Pack Hotfix Version:6.8.3, but I did not reproduce your issue. If you are using an older version, we recommend you upgrade to the latest version and try again.
Besides, please note that because the PPT file is large, the conversion requires much memory.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Tue Aug 24, 2021 6:40 am

Tried the hotfix 6.8.3 and it still did not work. Get the same error

karendmello
 
Posts: 8
Joined: Mon Feb 08, 2021 1:33 pm

Tue Aug 24, 2021 7:41 am

Hello,

Thanks for your feedback.

Since your PPT file is large and contains many pictures, it needs a lot of memory to convert to PDF. I tested convert the ppt file to PDF, and it requires about 4GB of memory. Please make sure that your system's free memory is greater than 4GB.

Besides, if the build platform target of your project is X86, it will limit the program's running memory, which may cause memory overflow. In this case, we recommend that you change the build platform target to x64 and try again.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.PDF