DTPDM(1)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸŽ€ NAME πŸŽ€

okay bestie, this is the dtpdm(user cmd) manual page, and the main character is dtpdm β€” the Print Dialog Manager to provide printer-specific GUIs πŸ’–βœ¨


🌸 SYNOPSIS 🌸

dtpdm [-vdisplay vdpy] [-window vwid] [-pdisplay pdpy] [-pcontext pcid]

πŸ¦‹ DESCRIPTION πŸ¦‹

So dtpdm is the Print Dialog Manager (PDM) β€” it gets invoked by the Print Dialog Manager Daemon (dtpdmd) to provide printer-specific GUIs on behalf of a printing application, bestie. It is a process separate from the print server. periodt πŸ’…

At an application’s request, dtpdm posts a set of printer-specific dialogs to the user’s display that let the user configure a variety of printer options. The way that works is very β€œit’s giving invisible helper” β€” the application asks, and dtpdm handles the cute printer-specific UI ✨

The dtpdm program provides a setup dialog to X printing applications that allows the user to set printer specific and job specific options. The setup dialog appears to be part of the application, but it is actually managed by the dtpdm on behalf of the application. It is capable of providing dialogs in all locales for which there exist applicable message catalogs. πŸŒπŸ’–

dtpdm presents a dialog containing the printer name and description plus an XmNotebook widget. This widget contains two tabs: one for the Printer Setup Box and one for the Job Setup Box. Each of these boxes provides controls that allow for configuration of various printing options. πŸŽ€

The dtpdm dialog also contains three pushbuttons labelled OK, Cancel, and Help. When the user presses OK, dtpdm dismisses the dialog and sets the newly configured printing options in the current print context (via XpSetAttributes). When the user presses Cancel, dtpdm dismisses the dialog and makes no changes to the print context. No cap β€” Cancel is the β€œnever mind bestie” button πŸ™ˆπŸ’…

πŸ–¨οΈ Printer Setup Box πŸ–¨οΈ

The Printer Setup box presents options specific to the currently selected printer. The options presented may vary in other PDM implementations. The printer setup options presented by dtpdm are as follows:

  • Printer Information β€” Provides information about the X Printer. The information consists of the printer model and the document format used to generate documents sent to this X Printer. πŸ–¨οΈβœ¨
  • Page Orientation β€” Specifies how the output will be oriented on the page. The orientation options presented in the menu depend on the printer, but up to four orientations are possible: portrait, landscape, reverse portrait, and reverse landscape. An icon adjacent to the Options menu presents a graphical illustration showing the current selection. πŸ”„πŸ–ΌοΈ
  • Printed Sides β€” Specifies single or double-sided printing. The actual choices available depend on the printer, but up to three choices are possible: simplex, duplex, and tumble. An icon adjacent to the Options menu presents a graphical illustration showing the current selection. πŸ“„πŸ“„
  • Tray β€” Specifies the printer tray from which the media will be drawn. The Auto-select tray option is available for all printers. Selecting this option indicates no preference as to which tray to use. Remaining Tray selections are dependent on the printer. 🧺
  • Page Size β€” Specifies the media size for printing. The entries in this list box depend on whether the Loaded in Printer or All Sizes radio button is selected. πŸ“
  • Loaded in Printer β€” Provides a list of the media sizes currently available on the printer. If the current Tray option is Auto-select, the user will see all media sizes available in all of the printer’s trays. If a specific tray is selected, only the media size loaded in that tray will be shown. Information on which media size is available in which tray is provided by the system administrator via the input-trays-medium attribute. If the system administrator does not provide this information, the Loaded in Printer radio button will be inactive. πŸ‘€πŸ—‚οΈ
  • All Sizes β€” Provides a list of all supported media sizes available for the printer. If the user selects this button, the Tray option is set to Auto-select. This button is provided for the following situations:
    • If the system administrator has not specified which sizes are loaded in the printer
    • If a desired media size is not loaded and the printer prompts for the requested size
    • If the output never reaches an actual printer (for example, when printing to a file) πŸ’ΎπŸŒΈ

🧾 Job Setup Box 🧾

The Job Setup box presents options specific to the spooler controlling the printer. The options presented may vary in other PDM implementations, depending on the spooler. The job setup options presented by dtpdm are as follows:

  • Send Mail When Done β€” Instructs dtpdm to send an email message to the user when the job is completed. πŸ“§βœ…
  • Banner Page Title β€” Specifies the text the user wants to appear on the banner page of the output. πŸ·οΈπŸ“„
  • Print Command Options β€” Specifies command line options and arguments that the user wants to pass to the spooler. dtpdm performs no parsing of this field. All parsing and argument validation is performed by the underlying spooler. πŸ§ πŸ’…

πŸ’… OPTIONS πŸ’…

The following options are available:

  • -vdisplay vdpy β€” Specifies the display connection to the Video X-Server. πŸ–₯️✨
  • -window vwid β€” Specifies the window id on the Video X-Server to which the PDM’s dialogs should be posted as transient windows. πŸͺŸ
  • -pdisplay pdpy β€” Specifies the display connection to the Print X-Server. πŸ–¨οΈπŸ”Œ
  • -pcontext pcid β€” Specifies the print context id on the Print X-Server. The PDM uses this id to gain access to the print context being used by the requesting application. πŸ†”πŸŽ€

🌈 ENVIRONMENT VARIABLES 🌈

The Dt Print Dialog Manager uses the environment variable LANG to identify the location of its localized message file. πŸŒπŸ’¬


⭐ RESOURCES ⭐

None. Literally none, bestie β€” nothing to manage here πŸ’€


🫢 ACTIONS/MESSAGES 🫢

None. Again: none. The vibe is quiet on this one 🀫


πŸ‘‘ RETURN VALUES πŸ‘‘

The return values (defined as integer constants in Dt/dtpdmd.h) are as follows:

  • PDM_EXIT_OK β€” The PDM is telling the PDMD that the user selected OK to dismiss the PDM. βœ…
  • PDM_EXIT_CANCEL β€” The PDM is telling the PDMD that the user selected CANCEL to dismiss the PDM. ❌
  • DM_EXIT_VXAUTH β€” The PDM is telling the PDMD that it did not have proper authority to make a display connection on the Video X-Server. 🚫
  • PDM_EXIT_PXAUTH β€” The PDM is telling the PDMD that it did not have proper authority to make a display connection to the Print X-Server. πŸš«πŸ–¨οΈ
  • PDM_EXIT_ERROR β€” The PDM is telling the PDMD that it encountered an error. πŸ’€
  • all other values β€” The PDMD treats all unknown return values the same as PDM_EXIT_ERROR. Such return values are likely from uncontrollable exit conditions often found in other libraries (for example, untrapped XIO errors from libX). 😭πŸ”₯

πŸ’€ ERRORS/WARNINGS πŸ’€

None. No warnings here, bestie πŸŽ€


πŸ“ FILES πŸ“

None. Nothing to open, nothing to peek at πŸ“‚βœ¨


🧚 EXAMPLES 🧚

None. No example section crumbs β€” that’s just how this page is πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

  • dtpdmd1 β€” go read it, bestie πŸ‘€πŸ’–

okay bestie, that’s the whole dtpdm(user cmd) page β€” the footer sign-off is literally dtpdm(user cmd), with no date listed here. go off and print cute things πŸ’…πŸŽ€βœ¨

πŸ“¦ where this page comes from