A post-script-dc% object is a PostScript device context, that can write PostScript files on any platform. See also ps-setup%.
Be sure to use the following methods to start/end drawing:
See also printer-dc%.
If interative? is true, the user is given a dialog for setting printing parameters (see get-ps-setup-from-user); the resulting configuration is installed as the current configuration). If the user chooses to print to a file (the only possibility under Windows and MacOS), another dialog is given to select the filename. If the user hits cancel in either of these dialogs, then ok? returns #f.
If parent is not #f, it is used as the parent window of the configuration dialog.
If interative? is #f, then the settings returned by current-ps-setup are used. A file dialog is still presented to the user if the get-file method returns #f, and the user may hit cancel in that case so that ok? returns #f.
See also ps-setup% and current-ps-setup. The settings for a particular post-script-dc% object are fixed to the values in the current configuration when the object is created (after the user has interactively adjusted them when interactive? is true).