[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: page rotation



I was looking through the faq.txt file which in the Readme directory of your
latest version of SQR and I noticed the solution to your problem.  Try this
Q: Is it possible to print rotated text when producing Postscript output?
    The following program demonstrates how to rotate text 90, 180,  and 270
    degrees:

---------------------------- Example code begins here
begin-program
use-printer-type postscript
print '0 degree 1,1' (1,1)            ! Print line at 0 rotation
print-direct 'statusdict begin'        ! Rotate 90 degrees
print-direct '90 rotate'
print-direct '0 -792 translate'
print '90 degree 1,1' (1,1)            ! Print four lines rotated 90
degrees
print '90 degree 2,1' (2,1)
print '90 degree 3,1' (3,1)
print '90 degree 4,1' (4,1)
print-direct '-90 rotate'              ! Rotate back to 0
print-direct '-792 0 translate'

print '0 degree 2,1' (2,1)            ! Print line at 0 rotation
print-direct '180 rotate'            ! Rotate 180 degrees
print-direct '-612 -792 translate'
print '180 degree 1,1' (1,1)           ! Print four lines rotated 180
degrees
print '180 degree 2,1' (2,1)
print '180 degree 3,1' (3,1)
print '180 degree 4,1' (4,1)
print-direct '180 rotate'              ! Rotate back to 0
print-direct '-612 -792 translate'

print '0 degree 3,1' (3,1)             ! Print line at 0 rotation
print-direct '270 rotate'              ! Rotate 270 degrees
print-direct '-792 -180 translate'
print '270 degree 1,1' (1,1)           ! Print four lines rotated 270
degrees
print '270 degree 2,1' (2,1)
print '270 degree 3,1' (3,1)
print '270 degree 4,1' (4,1)
print-direct '90 rotate'               ! Rotate back to 0
print-direct '180 -792 translate'
print '0 degree 4,1' (4,1)             ! Print line at 0 rotation
print-direct 'end'
end-program

---------------------------- Example code ends here
Gretchen