C# and Ghostscript

T

tc

Does GhostScript provide any library so that we can reference it in our C#
project to programmatically handle printing of ps / pdf files?

I have tried to use the gs command (call by process) in C# application to
handle printing.
gswin32 -dPrinted -dBATCH -dNOPAUSE -q -sDEVICE=ljet4 -dFirstPage=2 -dLastPa
ge=2 -dORIENT1=false -sOutputFile="YourPrinterName" FileName

However, I can't control the paper orientation of the printout (I have found
in some web site that said that dORIENT1 is the parameter to control paper
orientation, but no matter what value I have set, the printout is portrait.

What I need to do is rather simple, to print a pdf file supporting 2
printing features
1. print a range of pages of the pdf file
2. control paper orientation of printout

but yet I can found any solutions.....( I have also tried to call
AcroRd32.exe....but it can handle case 1 of my requirement....)

Thanks
 
K

Klaus H. Probst

I'd probably start here:
http://www.cs.wisc.edu/~ghost/doc/AFPL/8.00/Develop.htm

And this looks interesting:
http://groups.google.com/groups?selm=#[email protected]&oe=UTF-8&output=gplain


--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

tc said:
Does GhostScript provide any library so that we can reference it in our C#
project to programmatically handle printing of ps / pdf files?

I have tried to use the gs command (call by process) in C# application to
handle printing.
gswin32 -dPrinted -dBATCH -dNOPAUSE -q -sDEVICE=ljet4 -dFirstPage=2 -dLastPa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top