Publishing Engine Programmer's Guide > PTC Arbortext Publishing > The Publishing Framework > Print and Print Preview > Print Command
  
Print Command
The print composed command translates a document to Postscript and either saves the Postscript to disk or prints it. Processing may include any of the following cases:
compact install tree: translate the document to PDF and print the PDF
full install tree: Arbortext Formatting Engine translates the document to DVI and use the printer driver to either print the DVI file or save it to disk as PostScript
full install tree: Arbortext Formatting Engine translates the document to DVI, translate the DVI to Postscript, then print the Postscript file or save it to disk;
full install tree: PTC Advanced Print Publisher translates the document to PostScript, then either print the PostScript file or save it to disk.
Like the preview command, the print composed command has a number of minor functions that are entirely implemented within Arbortext Editor. If none of these functions are invoked, then print composed checks to see whether it is running in the compact install tree. If so, it calls the ACL routine comp_print::printUsingPDF, in ACL module comp_print.acl, which will translate the document to PDF and print the PDF file. If it’s not running in the compact install tree, print composed displays the print dialog box, then calls comp_print::composeAndPrint to finalize processing.
comp_print::composeAndPrint determines whether to use PTC APP or the Arbortext Formatting Engine and then calls either comp_print::printUsingApp or comp_print::printUsingTex. comp_print::printUsingApp sets parameters and calls the outer publishing framework layer subroutine comp_pdf::compose_for_pdf; comp_print::printUsingTex sets parameters and calls the publishing outer framework subroutine comp_dvi::compose_for_dvi.
Note that the core print composed support is responsible for displaying the print dialog. For this reason, all of the ACL routines called by print composed support operate in batch mode, with no dialog boxes offered to the user. The core print_composed support calls routines in the comp_print.acl module to populate some of the fields in the publishing dialog boxes; these subroutines call the same subroutines that the dialog box support in the publishing framework call.