Returns the current output mode for the document. This allows you to test for a specific value and react accordingly.
&printermode integer value
Value: |
Description: |
0 |
PlanetPress during document design |
1 |
Preview or Softproof as Printer Queue |
2 |
Preview or Softproof as PlanetPress Image |
3 |
Preview or Softproof as PlanetPress Fax |
4 |
Printer Preview |
5 |
Printer Hard Disk |
6 |
Printer Memory |
7 |
Host Computer |
8 |
Flash Memory |
9 |
PlanetPress Image |
10 |
PlanetPress Fax |
11 |
PlanetPress Suite Workflow Tools |
This example changes some colors to shades of gray for greater legibility on a fax.
setlinewidth(0.1) %Select a thick pen if(&printermode=10) %If Destination is Fax setfillcolor([5,5,5,5]) %Set fill to light gray setstrokecolor([0,0,0,100]) %Set pen to black elseif() %Otherwise,set fill colour to yellow setfillcolor([0,0,50,0]) setstrokecolor([100,100,0,0]) %Set pen colour to blue endif() rectstroke(0,0,3,3) %Display rectangle rectfill(0,0,3,3)