Macro Language Reference > Macros > Print > tprintx
  
tprintx
Description
Identical to tprint, but is used for unattended print and as such is only applicable for server versions of PTC ALD .
Prints the specified range of pages from an PTC ALD document to the current print device (either the default printer, the printer specified with the --p command line switch, or a printer specified with the printer macro.)
Syntax
tprintx ( ( start_page:p ',' end_page:p? ) | ( page_range:s ) ) ( ',' copies:n ( ',' size_percent:f ( ',' yx_ratio:f ( ',' all_l_r:n ( ',' pctrl:t ( ',' print_file:s ',' view_no:n? ';' file_freq:n? )? )? )? )? )? )?
[no parameter]
Invoke the Print Document to ... dialog box (title will be completed with default printer set)
start_page
The start page in the range of pages to be printed, defaulting to the current page.
* 
If start_page is higher than end_page, the pages will be printed in reverse order.
end_page
The end page in the range of pages to be printed, defaulting to the current page.
* 
If start_page is higher than end_page, the pages will be printed in reverse order.
page range
The listing of pages and/or range of pages to print. The elements in the list are separated by commas or spaces. The syntax for the page numbers is as follows: "num" for a page number, "num..num" or "num-num" for a range of pages. Both types of page range indicator (.. and -) can be used in the same command. Printing a range or individual pages in a different order to the normal progress of printing is also possible.
copies
The number of copies of each page to print, by default 1. If it is more than 1 then each page will be printed the given number of times before the next page is processed.
size_percent
The percentage size at which to print.
* 
A % symbol is not necessary.
yx_ratio
The scale of page height compared to page width. This compensates for plastic plate stretching when placed on a roller. The default value is 1.0, which does not make any adjustment.
all_ l_r
The orientation of pages to be printed.
0
Print all pages
1
Print only right hand pages
2
Print only left hand pages
pctrl
The name of the printer control stream to use, if any.
print_file
The name of a file or printer port (e.g. lpt1, com1) to which to print. You can also type the name of the port into the Print Destination edit field when using the Print document dialog box: this is useful if you want to try printing to a port with/without renaming it in your startdos.3ad file, as discussed under device.
On Windows systems, if the first character of print_file is a @ character it represents the name of a Windows printer. A list of printers (without the @) can be obtained using the tflist macro with mode 7.
When printing to a file using the dialog, PTC ALD prepends the "{@}" area name to the default filename that is to be printed. This area is initialized to the PTC ALD directory /3d . Each printer driver can print to its own area. For example, if you define an area name called "print_ps", the postscript driver will prepend all its default filenames with "{print_ps}", instead of "{@}".
To set areas for other printer drivers, define an area name corresponding to the driver's default extension, e.g. the TIFF driver which has the default extension .tif would need to have an area called "print_tif" defined. See also: ../3d/areas.3d).
view_no
The alternate view number you wish to print.
* 
Note all other parameters must be included even if they are blank strings or zero. (see also tpgoto ).
file_freq
The number of files you wish to print based on the number of pages or the ranges. Use the following parameters as required:
;0 –One file for all pages
;1 – New file for each page
;2 – New file for each range
/padding
The spacing you wish to apply to the pages that you print. For example, to print a new file for each page with a padding of 4, use the parameter ;1/4.
Additional Information
For information on setting print driver and device options, please see printer.
PTC ALD includes the option to create and maintain document properties specifically for inclusion with PDF or PostScript output. When selecting Portable Document Format (PDF) or PostScript as the printer driver a user can select from a default list of PDF or PostScript properties in the Set Options tab of the Print Document to... dialog box. Provided the selected properties have been defined for the document, the metadata they contain will be included with the output. For more information on creating document properties, please refer to the macro tdprop.
PTC ALD also offers the option to include or exclude default or user specified revision colors such as crop boxes and line marks from PostScript output. In the Set Options + Opt tab of the Print Document to... dialog box, tick the Optional PostScript to include items as required. The names of user specified colors can also be updated from this dialog.
Related Links