ArtifexSoftware / Ghostscript.NET

Ghostscript.NET - managed wrapper around the Ghostscript library (32-bit & 64-bit)
https://ghostscript.com
GNU Affero General Public License v3.0
391 stars 152 forks source link

PDFWrite Exception When Running Several Large Files #93

Open XxDaShTixX opened 2 years ago

XxDaShTixX commented 2 years ago

Hello,

I am able to convert several PostScript files to PDF with no problem. However, when I am converting 75 PostScript files to PDF (which would render several hundred PDF pages), it breaks halfway through the process as if it is timing out (so about 1 minutes into the process).

I could not find anything about timeouts that I can adjust. I am using a background worker in my app.

image

Line 176 in my class is basically: ghostscript.Process(switches.ToArray());

Is there anything I can try to see if I can convert large PostScript files and avoiding this error?