printer-dc% : class?

  superclass: object%

  extends: dc<%>
A printer-dc% object is a printer device context. A newly created printer-dc% object obtains orientation (portrait versus landscape) and scaling information from the current ps-setup% object, as determined by the current-ps-setup parameter. This information can be configured by the user through a dialog shown by get-page-setup-from-user.

Be sure to use the following methods to start/end drawing:
  • start-doc

  • start-page

  • end-page

  • end-doc

Attempts to use a drawing method outside of an active page raises an exception.

See also post-script-dc%.

When a printer-dc% object is created, the user gets platform-specific modal dialogs for configuring the output. If the user cancels the dialog, the ok? method of the object returns #f.

(new printer-dc% [[parent parent]])  (is-a?/c printer-dc%)
  parent : (or/c (is-a?/c frame%) (is-a?/c dialog%) false/c)
   = #f
If parent is not #f, it is used as the parent window of the configuration dialog.