[gs-bugs] [Bug 689919] Orientation after convert from PDF to PCL

bugs.ghostscript.com-bugzilla-daemon at ghostscript.com bugs.ghostscript.com-bugzilla-daemon at ghostscript.com
Tue Jul 29 19:33:57 PDT 2008


http://bugs.ghostscript.com/show_bug.cgi?id=689919

amuabei at 163.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|WORKSFORME                  |



------- Additional Comments From amuabei at 163.com  2008-07-29 19:33 -------
Dear Alex,

I'd like to explain that when we use pdf2ps to print the .PDF formated 
landscape on HP Laserjet printer, I get correct hard copies. More, I never 
need to change the gs command in the pdf2ps, it always works fine.
But when I use pdf2pcl, at previously, I can only get portriat hard copies 
even when the .PDF file is landscape. Then, very thanks for your advices that 
make me can get landscape hard copies. But the data position on the hard 
copies move about one centimeter right comparing with the copies printed by 
pdf2ps. And the data position right moving cause some content in the right 
lost on the hard copies, so we have to move data 1 centimeter to the left. I 
guess while data moving one centimeter back to the left, PCL can print as same 
hard copies as PS, but that haven't come true.

Then, answer your questions.
1. %!
  <</PageSize [ 595 842 ]>> setpagedevice

This printed hard copies formated landscape via PCL, but the data on the hard 
copies moves right about one centimeter. 
It happens with every PDF and PCL file. 
Below is my test command:
#### test command 1 : #####
gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=laserjet -sOutputFile=A.pcl -
c "<< /InputAttributes <<     currentpagedevice /InputAttributes get {       
pop null     } forall   >>  dup 0 << /PageSize [ 595 842 ] >> put >> 
setpagedevice" save pop -f A.PDF
#### test command 2 : #####
gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=laserjet -sOutputFile=A.pcl -
c "<< /InputAttributes <<     currentpagedevice /InputAttributes get {       
pop null     } forall   >>  dup 0 %! << /PageSize [ 595 842 ] >> put >> 
setpagedevice" save pop -f A.PDF
Using command 2, Gostscript return 'Unrecoverable error, exit code 1'

2. %!
  <</PageSize [ 842 595 ]>> setpagedevice

This printed hard copies formated portrait via PCL, but the data on the hard 
copies moves right about one centimeter. 
It happens with every PDF and PCL file. 
Below is my test command:
########
gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=laserjet -sOutputFile=A.pcl -
c "<< /InputAttributes <<     currentpagedevice /InputAttributes get {       
pop null     } forall   >>  dup 0 << /PageSize [ 842 595 ] >> put >> 
setpagedevice" save pop -f A.PDF

3. In my test, if printed PDF via PS, below command can print both landscape 
and portrait format. Never needs to change.
It happens with every PDF and PS file. 
########
gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pswrite -sOutputFile=A.ps -c save 
pop -f A.PDF

4. Above testing results happen with every PDF and PCL file. 

Best Regards,




------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the gs-bugs mailing list