PC Review


Reply
Thread Tools Rate Thread

C# and Ghostscript

 
 
tc
Guest
Posts: n/a
 
      3rd Feb 2004
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


 
Reply With Quote
 
 
 
 
Klaus H. Probst
Guest
Posts: n/a
 
      4th Feb 2004
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...&output=gplain


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

"tc" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ghostscript question Keith G Hicks Microsoft Access 3 17th Mar 2010 01:39 PM
Use Ghostscript from C# Sjaakie Microsoft C# .NET 4 11th May 2006 08:14 AM
ASP.NET and GhostScript Sjaakie Microsoft ASP .NET 0 10th May 2006 12:07 PM
ghostscript installation Martin DeMello Freeware 5 26th Aug 2004 09:19 PM
ghostscript question nightfishing Freeware 1 3rd Nov 2003 10:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 AM.