Macro Language Reference > Macros > System > printer
  
printer
Description
Sets a particular device as a printer driver, which will be used as the 'current printer' by the macro. If you wish to print to a device for which PTC ALD needs an external device driver, that driver must have been loaded along with PTC ALD.
 
This is done more usually via a command-line option with the -p switch in your 3b2.bat file.
 
Example 238. Set PostScript as the printer driver
printer "PScript"
 
Example 239. Set print to screen as the printer driver
printer "WinScreen"
This effectively gives you a print preview facility (use wtp to restore the screen to normal.)
Syntax
printer device name:t? x_and_y:n?
device name
The name of the printer driver to be used: this should be device enabled in your relevant start***.3ad file, or one of the standard PTC ALD options below (*** being your platform abbreviation e.g. win):
windows
windows: .win
pscript
postscript: .ps
epsf
Postscript (EPSF): .eps
tiff, tiffmono
Mono/Colour Tiff :.tiff
gif
GIF: .gif
edgar
Old Edgar (from view):.egt
raw
Raw Data: .raw
html
HTML: .htm
htmled2
Edgar 2 HTML (from raw data): .eg2
pdf
Portable Document Format:.pdf
PNG
PNG raster graphics
SVG
Scalable vector graphics
XML
XML (From v9.0 onwards)
The following four options are the print preview or print to screen drivers for respective platforms:
vesa
DOS
WinScreen, WinMono
Windows
x11, x11mono
Unix
XVT
Macintosh
device name (cont...)
Miscellaneous printers:
hp
HP laserjet 2,3,4:.hp
g650
Mitsubishi G650:.650
vy5000
Hitachi VY5000: .vy
bj10
Canon: .bj
ep9
Epson 9 Pin: .ep9
EGA
Cotron
Genius
Hercules
JLaser
device name (cont...)
CGA
EGAm
CGAm
EGAmm
A4
Hitachi
Viking
VGA
VGAm
Blaser
device name (cont...)
Sigma19
Sigma15
Ultre
LazaGRAM
TSL206
DDPI
null
ACE
IBM8514
UIS
device name (cont...)
ETAPA3
WY700
ETAPA4
MDB10
CornDP
CornSP
DDom256C
SamsTP
SamsOP
DDom256G
device name (cont...)
DDom16C
DDomBW
BDom256C
BDom256G
BDom16C
BDomBW
HowtekPM
CGIDisp
GeniusA3
SUNpix
device name (cont...)
SPEA
Corn1280
TVGAH
TVGAM
Tiga
TigaBW
Ras3B2
SPEA2
SVGA1
SVGA2
device name (cont...)
OCHR
SVGA3
CLC
SigMMode
Amiga
ESCP2
PtoM
IBMXGA
WinScreen
Edgar1v2
device name (cont...)
CheckSum
Blackbox
x_and_y
Device-specific parameters: for example, when using the Ultre device, the -x and -y options specify, in pixels, an unprintable area on the left/right and top/bottom of each 'print'.
Additional Information
Setting driver options
To set the various printer driver options outside of the dialog, default sets of system variables are used. These can be reset to the appropriate value in the same way you set any variable. The popular drivers and their corresponding variables are detailed below.
Windows
Windows driver option variables:
^_p235_paperselect; Paper Size Select; 0 - BCD, 1 - Windows Driver, 2 - Custom.
Postscript
Postscript driver option variables.
^_p316_tab; Configures the tab you see invoking the dialogbox; 0 - General, 1 - Paper/Media, 2 - Fonts, 3 - Images, 4 - PDF.
^_p316_colour Colour Mode: 0 - Monochrome, 1 - Colour, 2 - CMYK Colour, 3 - CMYK + Spot Colour.
^_p316_screen_col Colours; 0 - Printer, 1 - Screen
^_p316_screen Screening; 0 - BCD, 1 - Device
^_p316_ctrld Send; o Ctrl-D. 1 is YES.
^_p316_file; Scratch File. A string up to 160 characters.
^_p316_1st; Paper Tray First Page; 0 - Default Tray, 1 - Tray 1, 2 - Tray 2, 3 - Manual Feed
^_p316_other; Paper Tray First Page, 0 - As first, 1 - Tray 1, 2 - Tray 2, 3 - Manual Feed
^_p316_duplex; Duplex double-sided printing. 1 is YES.
^_p316_size Page; Size0 - Auto Select, 1 - No Select2 - Level 2 Select
^_p316_rot Orientation; 0 - Auto Rotate, 1 - No Rotate
^_p316_media: u Media Width. A unit between 0 and 3000 mm.
^_p316_comment Include Font Comments; 0 - DSC 3.0, 1 - DSC 2.0
^_p316_pgfnts Include Fonts; 0 - Once, 1 - On each page
^_p316_type1 Include Fonts As; 1 - Type 1, 0 - Type 3
^_p316_scfnts Include Screen Fonts. 1 is YES (Default 0).
^_p316_prfnts Include Printer Fonts. 0 is YES (Default).
^_p316_draft Linked Images; 0 - Original, 1 - Draft
^_p316_comp Compress Images; 0 - None, 1 - BCD, 2 - Level 2 RLE, 3 - Level 2 LZW
^_p316_binary: o Binary Images. 1 is YES.
^_p316_opi: o Include OPI comments. 1 is YES.
^_p316_tiff: o Include TIFF images. 1 is YES.
^_p316_pdfmark_lnk: s A string up to 98 characters.
^_p316_pdfmark_dest: s A string up to 98 characters.
^_p316_pdfmark_out: s A string up to 98 characters.
^_p316_pdfmark_article: s A string up to 98 characters.
^_p316_page_show: s String up to 98 characters, values are taken from string 1364 (use select).
EPSF
EPS driver option variables.
^p744_tab Configures the tab you see invoking the dialog box; 0 - PostScript, 1 - Preview
^_p744_colour PostScript Mode; 0 - Monochrome, 1 - Colour, 2 - CMYK Colour, 3 - CMYK + Spot Colour
^_p744_screen_col Colours; 0 - Printer, 1 - Screen
^_p744_screen Screening; 0 - BCD, 1 - Device
^_p744_draft Linked Images; 0 - Original, 1 - Draft
^_p744_comp Compress Images; 0 - None, 1 - BCD, 2 - Level 2 RLE, 3 - Level 2 LZW
^_p744_binary: o Binary Images. 1 is YES.
^_p744_opi: o Include OPI comments. 0 is YES.
^_p744_tiff: o Include TIFF images. 0 is YES.
^_p744_commentInclude Font Comments; 0 - DSC 3.0, 1 - DSC 2.0
^_p744_type1IncludeFonts As; 1 - Type 1, 0 - Type 3
^_p744_scfnts: o Include Screen Font. 1 is YES.
^_p744_prfnts: o Include Printer Fonts. 1 is YES.
^_p744_file: s Scratch file. A string up to 160 characters.
^_p744_prev_type Preview type; -1 - None, 0 - TIFF Mono, 1 - TIFF RGB, 2 - TIFF CMYK, 3 - EPSI
^_p744_prev_xres: n Pixels per inch horizontal. A number between 0 and 10000 (0-default, 25dpi).
^_p744_prev_yres: n Pixels per inch vertical. A number between 0 and 10000 (0-default, 25dpi).
^_p744_tiffcompCompression; 0 - None, 1 - LZW
^_p744_composite: o Composite in the preview file. 1 is YES.
^_p744_prev_fileScratch file. A string up to 160 characters.
PDF
PDF driver options variables: for current options, always check string 268 in the stuk.3ad file, which defines the PDF Options dialog box.
Colour mode ^_p268_colour; 0 - Output colours as specified in document, 1 - Output all colours as Greyscale, 2 - Output all colours as RGB, 3 - Output all colours as CMYK
Linked images ^_p268_draft; 0 - Output original linked images, 1 - Output low resolution linked images
Ascii mode ^_p268_ascii; 0 - Output binary PDF file, 1 - Output Ascii PDF file
Monochrome Bitmap compression ^_p268_compress_mono; -1 - Automatic, 0 - None, 1 - Runlength encoding, 2 - CCITT Group 3, 3 - CCITT Group 4, 4 - Flate (Zip)
Greyscale Bitmap compression ^_p268_compress_grey; -1 - Automatic, 0 - None, 1 - Runlength encoding, 4 - Flate (Zip), 5 - JPEG
Greyscale JPEG Quality ^_p268_grey_quality; 0 - Minimum quality (maximum compression), 1 - Low quality, 2 - Medium quality, 3 - High quality, 4 - Maximum quality (minimum compression)
Colour Bitmap compression ^_p268_compress_colour; -1 - Automatic, 0 - None, 1 - Runlength encoding, 4 - Flate (Zip), 5 - JPEG
Colour image JPEG Quality ^_p268_colour_quality; 0 - Minimum quality (maximum compression), 1 - Low quality, 2 - Medium quality, 3 - High quality, 4 - Maximum quality (minimum compression)
Text and line art compression ^_p268_compress; 0 - Uncompressed, 1 - Compressed
Additional settings for PDF links ^_p268_pdfmark_lnk; see Annotations in the PDF Reference manual for valid settings
PDF Defaults
^_p268_colour-0
^_p268_draft-0
^_p268_ascii-0
^_p268_compress_mono--1
^_p268_compress_grey--1
^_p268_grey_quality-2
^_p268_compress_colour--1
^_p268_colour_quality-2
^_p268_compress-1
^_p268_pdfmark_lnk-/Border [0 0 0]
 
The automatic compression option will select the most suitable compression scheme based on the type of image.
If you want to set parameters from a script prior to printing, you should be aware that PTC ALD will load default settings when initializing the printer driver. To prevent this, set ^_read_p268-1 in your script.
Setting any of these script variables to a value not listed here, or in stuk.3ad, will have unpredictable results and may produce an unusable PDF fill.
Edgar 1v2
Edgar1v2 Options (only available if Edgar1v2).
^_p1307_red_state; o Inhibit Red Lining. 1 is YES.
^_p1307_upper_case; o Inhibit Header Auto Case. 1 is YES.
^_p1307_line_ends Line endings; 0 - Auto, 1 - CR only, 2 - LF only, 3 - CR+LF
^_p1307_page_tags; o Break Tables. 1 is YES.
^_p1307_page_item Art of page numbering; 0 - No Page Numbers, 1 - User Page Numbers, 2 - Line Count Page Numbers
^_p1307_start_page; n Starting Page No. A number between 1 and 99999.
^_p1307_page_style Page Division Style; 0 - [ None ], 1 - [ X ], 2 - [X ], 3 - [ X], 4 - [ ---X--- ]
^_p1307_line_count; n No Lines in Page. A number between 20 and 999.
^_p1307_break_tables; o Break Tables. 1 is YES.
^_p1307_para_ends; o Wait for Para End. 1 is YES.
^_p1307_start_page; n Starting Page No. A number between 20 and 99999.
^_p1307_want_errors; o Include grid error messages. 1 is YES.
^_p1307_rule_pri Priority; 0 - horizontal, 1 - vertical
^_p1307_rule1_hor; s Character for horizontal single.
^_p1307_rule1_vert; s Character for horizontal double.
^_p1307_rule1_hor; s Character for vertical single.
^_p1307_rule1_vert; s Character for vertical double.
Raw Data
^_p1315_tab Configures the following tab you will see invoking the dialog box; 0 - Text, 1 - Graphics.
^_p1315_filter_name: t Map name. Valid BCD tag name.
^_p1315_props: o Include processing instructions. 1 is YES.
^_p1315_line_ends : o Keep BCD line ends. 1 is YES.
HTML
HTML Options (only available if RAW).
^_p1316_tab; Configures the following tab you will see invoking the dialog box 0 - HTML, 1 - Tables, 2 - Text, 3 - Graphics
^_p1316_title; Title. Jumbostring.
^_p1316_size_7; u Font Size No. 7. Any valid unit
^_p1316_no_H1; o If 1 heading H1 will be ignored.
^_p1316_size_6; u Font Size No. 7. Any valid unit
^_p1316_no_H2; o If 1 heading H2 will be ignored.
^_p1316_size_5; u Font Size No. 7. Any valid unit
^_p1316_no_H3; o If 1 heading H3 will be ignored.
^_p1316_size_4; u Font Size No. 7. Any valid unit
^_p1316_no_H4; o If 1 heading H4 will be ignored.
^_p1316_size_3; u Font Size No. 7. Any valid unit
^_p1316_no_H5; o If 1 heading H5 will be ignored.
^_p1316_size_2; u Font Size No. 7. Any valid unit
^_p1316_no_H6; o If 1 heading H6 will be ignored.
^_p1316_html_version; n HTML version 0 - 3.2, 1 - 4.0
^_p1316_use_css; o Use CSS styling 1 is YES (Default).
^_p1316_use_cat(1); n Font, size, 0 - No CSS (Default), 1 - Allow CSS, 2 - Prefer CSS
^_p1316_use_cat(2); n Text decoration 0 - No CSS (Default), 1 - Allow CSS, 2 - Prefer CSS
^_p1316_use_cat(3); n Margins/Indents 0 - No CSS (Default), 1 - Allow CSS, 2 - Prefer CSS
^_p1316_use_cat(4); n Rules 0 - No CSS (Default), 1 - Allow CSS, 2 - Prefer CSS
^_p1316_use_cat(5); n Backgrounds 0 - No CSS (Default), 1 - Allow CSS, 2 - Prefer CSS
^_p1316_table_border; s Border. A string from 0 to 6 characters.
^_p1316_cell_spacing; s Cell spacing. A string from 0 to 6 characters.
^_p1316_cell_padding; s Cell padding. A string from 0 to 6 characters.
^_p1316_col_gutter; s Gutter columns. A string from 0 to 6 characters.
^_p1316_subcol_align; o Align Sub Columns. 1 is YES.
^_p1316_nbsp_esubcols; o Include when empty. 1 is YES.
^_p1316_filter_name; t Map Name. Valid BCD tag name.
^_p1316_line_ends; o Keep BCD line ends. 1 is YES.
^_p1316_ignore_passthru; o Ignore <?passthru>. 1 is YES.
^_p1316_bi_test; s bold-italic, Jumbostring (Default: _bi).
^_p1316_bd_test; s bold, Jumbostring (Default: _bd|bold|heavy|black).
^_p1316_it_test; s italic, Jumbostring (Default: _it|italic|oblique|inclined).
^_p1316_tt_test; s fixed pitch, Jumbostring (Default: courier).
Font family mapping (CSS only)
^_p1316_fam_test(1); s 1. Match, Jumbostring (Default: times |bodoni |century |palatino |caslon |garamond |rockwell).
^_p1316_fam_test(2); s 2. Match, Jumbostring (Default: arial|helv|univers|sans).
^_p1316_fam_test(3); s 3. Match, Jumbostring (Default: courier|typewriter|console|monospace).
^_p1316_fam_test(4); s 4. Match, Jumbostring (Default: none).
^_p1316_fam_test(5); s 5. Match, Jumbostring (Default: none).
^_p1316_fam_map(1); s 1. font-family, Jumbostring (Default: serif).
^_p1316_fam_map(2); s 2. font-family, Jumbostring (Default: sans-serif).
^_p1316_fam_map(3); s 3. font-family, Jumbostring (Default: monospace).
^_p1316_fam_map(4); s 4. font-family, Jumbostring (Default: none).
^_p1316_fam_map(5); s 5. font-family, Jumbostring (Default: none).
HTML Edgar 1v2
String 1317: Edgar2 (HTML) Options (only available if RAW).
^_p1317_tab; Configures the following tab you will see invoking the dialog box; 0 - Edgar, 1 - Html, 2 - Tables, 3 - Text, 4 - Graphics.
^_p1317_page_sep_on: o Enable Page Separator. 1 is YES.
^_p1317_page_sep: s Page separator. Jumbostring.
^_p1317_redlining_on: o Enable Redlining. 1 is YES.
^_p1317_redlining_begin: s Begin. A string up to 60 characters.
^_p1317_redlining_end: s End. A string up to 60 characters.
^_p1317_title: s Title. Jumbostring.
^_p1317_table_border: s Border. A string up to 6 characters.
^_p1317_cell_spacing: s Cell spacing. A string up to 60 characters.
^_p1317_cell_padding: s Cell padding. A string up to 60 characters.
^_p1317_col_gutter: s Gutter columns. A string from 0 to 6 characters.
^_p1317_filter_name: t Map name. Valid BCD tag name.
^_p1317_line_ends: o Keep BCD line ends. 1 is YES.
^_p1317_ignore_passthru: o Ignore <?passthru>. 1 is YES.
^_p1317_bi_test: s bold-italic, Jumbostring (Default: _bi).
^_p1317_bd_test: s bold, Jumbostring (Default: _bd|bold|heavy|black).
^_p1317_it_test: s italic, Jumbostring (Default: _it|italic|oblique|inclined).
^_p1317_tt_test: s fixed pitch, Jumbostring (Default: courier).
Font family mapping (CSS only)
^_p1317_fam_test(1): s 1. Match, Jumbostring (Default: times|bodoni|century|palatino|caslon|garamond|rockwell).
^_p1317_fam_test(2): s 2. Match, Jumbostring (Default: arial|helv|univers|sans).
^_p1317_fam_test(3): s 3. Match, Jumbostring (Default: courier|typewriter|console|monospace).
^_p1317_fam_test(4): s 4. Match, Jumbostring (Default: none).
^_p1317_fam_test(5): s 5. Match, Jumbostring (Default: none).
^_p1317_fam_map(1): s 1. font-family, Jumbostring (Default: Times New Roman, Times, serif).
^_p1317_fam_map(2): s 2. font-family, Jumbostring (Default: Arial, Helvetica, sans-serif).
^_p1317_fam_map(3): s 3. font-family, Jumbostring (Default: Courier, monospace).
^_p1317_fam_map(4): s 4. font-family, Jumbostring (Default: none).
^_p1317_fam_map(5): s 5. font-family, Jumbostring (Default: none).
XML
Direct XML driver options.
^_p1468_xslt_file x
^_p1468_xslt_param_file x
^_p1468_encoding Encoding choice
^_p1468_filter_name Filter
^_p1468_default_namespace User the default namespace; yes/no, 1/0.
^_p1468_relative_pos Releative position; yes/no, 1/0.
^_p1468_ignore_passthru Ignore passthrough; yes/no, 1/0.
^_p1468_print_lines Print lines; yes/no, 1/0.
^_p1468_collate_streams collate streams; yes/no, 1/0.
 
For more printer driver variables, please see the Codex documents or interrogate the stuk.3ad menu strings file.
Related Links