How to print the pdf in Landscape orientation?

About the programming interface for the virtual PDF printer driver.

Moderator: jr

Post Reply

print the pdf in Landscape orientation?

print the pdf in Landscape orientation?
1
100%
How to print the pdf in Landscape orientation?
0
No votes
 
Total votes: 1

adhimoolamd
Posts: 1
Joined: Mon Sep 03, 2007 3:04 pm
Contact:

How to print the pdf in Landscape orientation?

Post by adhimoolamd »

Hi,

I am using the latest version 8.x of PDFPrinter in my .Net C# coding its working fine for protrite bot not working for Landscape. Even i change the orient option in differentway, its alway printing in portrite.

my code is

int numberOfCopies = 1;
string printerName = @"\\Printmagic\ECMP1";
string pdfFileName = @"C:\test.pdf";
string GhostScriptPath = c:\gs\gs8.56\bin\gswin32c
System.Diagnostics.ProcessStartInfo startInfo = new ProcessStartInfo();

startInfo.Arguments = " -dPrinted -dBATCH -dNOPROMPT -dNOPAUSE -dORIENT1=false -dNOSAFER -q -dNumCopies=" + Convert.ToString(numberOfCopies) + " -sDEVICE=ljet4 -sOutputFile=\"\\\\spool\\" + printerName + "\" \"" + pdfFileName + "\"";

startInfo.FileName = @GhostScriptPath;
startInfo.UseShellExecute = false;
System.Diagnostics.Process process = Process.Start(startInfo);

Please any can help to me....

Thanks in adv..
Adhi.D :oops:
rongill
Posts: 2
Joined: Wed Oct 10, 2007 2:32 am

Post by rongill »

hey .. did you ever figure this out ???
Post Reply