how to convert pcl into pdf using ghostscript in C#.Net

Sep 18, 2014 at 10:49 AM
hi,

i'm implementing the one program for converting pcl files into pdf readable format files using ghostscript open source dll in C#.Net.


could you please tell me the solution for converting pcl into pdf, if anyone knows?

thank you,
sai k
Nov 18, 2014 at 6:24 PM
I don't see an answer here. Did you ever figure it out? I'd like to use it to accept an imported PCL file, determine the appropriate tray calls per page, and output as a PDF.

Is that possible?
Coordinator
Nov 18, 2014 at 7:04 PM
Hi,

What you are looking for is GhostPCL which is not part of the Ghostscript.NET.

You can download GhostPCL from here: http://www.ghostscript.com/download/gpcldnld.html

To convert pcl to pdf you can use .NET Framework Process.Start method to run something like this: "pcl6-9.15-win32.exe -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=c:\test.pdf c:\test.pcl"

I hope this helps.

Cheers,
Josip
Nov 18, 2014 at 7:05 PM
Thanks, but will it let me grab the tray calls?
Coordinator
Nov 18, 2014 at 7:09 PM
I'm not sure. You should ask that on #ghostscript channel at irc.freenode.net. I'm sure someone there will be able to help you. (http://ghostscript.com/irclogs/current.html)
Nov 18, 2014 at 7:21 PM
Thanks!
Coordinator
Nov 19, 2014 at 9:51 AM
No worries,

Cheers,
Josip