Dear Sir/Lady, The left margin margin is more larger in .PCL file than in .PDF file after converting .PDF to PCL. So some content lost on the righ of the .PCL file. I used below commands, and the left-margin in .PCL files they generated looks is exactly the same. ###### Commands: ######## $ gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=laserjet - sOutputFile=XXPO_PRINT_1.PDF.pcl -c "<< /InputAttributes << currentpagedevice /InputAttributes get { pop null } forall >> dup 0 << /PageSize [ 595 842 ] >> put dup 1 << /Margins [0 0] >> put dup 1 << /.HWMargins [0 0 0 0] >> put >> setpagedevice" save pop -f XXPO_PRINT_739386_1.PDF $ gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=laserjet - sOutputFile=XXPO_PRINT_1.PDF.pcl -c "<< /InputAttributes << currentpagedevice /InputAttributes get { pop null } forall >> dup 0 << /PageSize [ 595 842 ] /Margins [-20 -20] /.HWMargins [0 0 0 0] >> put >> setpagedevice" save pop -f XXPO_PRINT_1.PDF I don't know is left-margin can be recovered in command? Would you please kindly give me some hints about this issue? Thanks,
You do everything right except that the margins are defined in the device coordinate system. 20 pixels at 300 dpi corresponds to 1.7 mm. Try to use large values.
I don't know why this bug report get marked as REMIND. Please confirm that large values of /Margins work.
REMIND was a 'mis-click' I intended to close it as 'WORKSFORME'
Dear Sir/Lady, I have some issue, the pcl report lost 3 letter on the right of the .PCL file . i used below command,and the printer output can't change anything. ### Commands: ##### exec "$GS_EXECUTABLE" $OPTIONS -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=laserjet - dORIENT1=true "-sOutputFile=$outfile" $OPTIONS -c "<< /Input Attributes << currentpagedevice /InputAttributes get { pop null } forall >> dup 0 << /PageSize [ 597.5 842.4 ]>> put dup 1<< /Margins [60 80]>> put dup 1 << /.HWMargins [0 0 0 0] >> put >> setpagedevice" save pop -f "$1" How can i move the .PCL file to 3 letter left-margin ? Thanks,
In PostScript, Margins establish an 'unprintable' area on the page, but this does NOT cause any shift of the image on the page. The default PostScript [0,0] is the lower left hand corner of the page. To shift the data you need to modify the 'initial matrix' using the Install setpagedevice procedure. For example: << /Install { 15 20 translate } bind >> setpagedevice will shift the data to the right by 15/72 inch and upwards by 20/72 inch. This will allow you to shift the data on the page. If you need to also shrink the pages, you can combine this with the 'scale' operator as in: << /Install { 15 20 translate .95 .90 scale } bind >> setpagedevice
Dear Sir/Lady, I change the command ,but the printer output can't change any,please check the my command. #####command### gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=laserjet -sOutputFile=A_T3.pdf.pcl - c "<< /InputAttributes << currentpagedevice /InputAttributes get { pop null } forall >> dup 0 << /PageSize [ 595 842 ]>> put dup 1 <</Install { 100 120 translate .50 .50 scale } bind >> put >> setpagedevice" save pop -f A.pdf Can you help me modify the command? Thanks,
Dear Ray, Please help me check the command. Thanks.
Dear Ray, I met this issue as well and tested blow command, but didn't take effect. The data never be transfer position no matter I set which value. #### e.g. #### gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=laserjet -sOutputFile=A.pcl -c "- sOutputFile=$outfile" $OPTIONS -c " << /InputAttributes << currentpagedevice /InputAttributes get { pop null } forall >> dup 0 << /PageSize [ 597.5 842.4 ]>> put dup 1 << /Install { 1 1 translate } bind >> put >> setpagedevice" save pop -f A.PDF Would you please give me some advices? Thanks a lot,
Dear Ray, As you mentioned value "<< /Install { 15 20 translate } bind >> setpagedevice" would shift the data to the right by 15/72 inch and upwards by 20/72 inch. If I need to shift the data to the left and downwards, how can I do? Set the value to be negative value? e.g " << /Install { -15 -20 translate } bind >> setpagedevice" Is that right? But I don't why in my test the data couldn't be shifted no matter which number I setted. I indeed could not see any data shift from the hard copy when I changed 'initial matrix' using the Install setpagedevice procedure. #### e.g. one of my testing commands #### gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=laserjet -sOutputFile=A.pcl -c "- sOutputFile=$outfile" $OPTIONS -c " << /InputAttributes << currentpagedevice /InputAttributes get { pop null } forall >> dup 0 << /PageSize [ 597.5 842.4 ]>> put dup 1 << /Install { 72 100 translate } bind >> put >> setpagedevice" save pop -f A.PDF Could you please tell me if my command incorrect? Or is there other parameter to control .PDF's data shift insteading of 'initial matrix'? Best Regards,
Dear Alex, Do you have any more advise for this issue? Really thanks. Best Regards,
Dear Ray, Alex, You are right. According to your advices, the issue is fixed now. Thanks for your strong support. Best Regards,