|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
xefitra - Landscape PDF PrintingI tried posting this yesterday, but am not sure that it went
through. I am struggling with PDF Landscape printing and am not sure
where I am going wrong. Here is my process: 1. I have setup a Virtual PostScript Printer attached to the
2. I have a Word Document set to Landscape Orientation
(myfile.doc) 3. Through Interop in C# I invoke the “PrintOut”
method of Word, using the Virtual PostScript Printer and Print To File=true, to
produce a PostScript file (myfile.ps) 4. Then, also through C#, I invoke GhostScript (v 8.50) to
convert the PostScript file (myfile.ps) to a PDF (myfile.pdf), using the
following command line: gswin32c -P- -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite
-I../gs8.50/lib -sOutputFile="myfile.pdf" -f "myfile.ps" -c
.setpdfwrite 5. A separate client application then prints the PDFs via
GSPrint, using the following command line: gsprint.exe -color -noquery -ghostscript
"gswin32c.exe" -all -printer "\\Blah\MyColorPrinter"
-landscape "myfile.pdf" If I open the PDF in Adobe Reader it looks fine (it is auto
rotated for landscape display). The print out of the PDF is not
correct. The content is clipped. I’m not sure if it clipped
the content for Portrait paper. The reason I’m using GSPrint is
because the client application that does the printing also allows for duplex
printing. I could not get duplex printing working through regular
GhostScript printing (mswinpr2 device) so I use GSPrint. How can I reliably be able to print Landscape documents? Thanks in advance for any help. Tim ____________________________________________________________________ This email is intended for the designated recipient(s) only, and may be confidential, non-public, proprietary, protected by the attorney/client or other privilege. Unauthorized reading, distribution, copying or other use of this communication is prohibited and may be unlawful. Receipt by anyone other than the intended recipient(s) should not be deemed a waiver of any privilege or protection. If you are not the intended recipient or if you believe that you have received this email in error, please notify the sender immediately and delete all copies from your computer system without reading, saving, or using it in any manner. Although it has been checked for viruses and other malicious software (malware), we do not warrant, represent or guarantee in any way that this communication is free of malware or potentially damaging defects. All liability for any actual or alleged loss, damage, or injury arising out of or resulting in any way from the receipt, opening or use of this email is expressly disclaimed. ______________________________________________________________________ _______________________________________________ gs-devel mailing list gs-devel@... http://www.ghostscript.com/mailman/listinfo/gs-devel |
| Free Forum Powered by Nabble | Forum Help |