Menu

#1 Printing Postscript in wxWidgets

closed
nobody
None
5
2005-12-23
2005-02-28
Anonymous
No

I am using wxGhostscript in a wxWidgets app to view
Postscript files, and it's great. What I want to do is to
print the Postscript file, either to a Postscript printer or
non-Postscript printer. I believe there are two avenues of
approach.

1. Simply send the Postscript file to the (Postscript)
printer. I am having trouble doing this because I don't
know how to send the Postscript stream to the printer
given the printing architecture in wxWidgets.

2. Draw the Postscript image to a dc that is given to me
by the Printing architecture. I am also having trouble
doing this and hope that somebody has already done it.

The third approach would be to copy the screen window
with the Postscript image to the dc given to me by the
printing architecture, but I don't want to do this as it
would not give me the best resolution as determined by
the printer's capabilities.

I can provide more details, but I wanted to first see if
anyone has done it with success, or if you could give
me some general direction.

Discussion

  • Nigel Hathaway

    Nigel Hathaway - 2005-02-28

    Logged In: YES
    user_id=487598

    Use Ghostscript itself to print the files. See the Ghostscript
    document. wxGhostscript allows you to feed arbitrary
    commands to Ghostscript. Ghostscript has output devices
    which are printers, e.g. the Windows print system. On Unix
    platforms you can usually feed the Postscript directly to the
    print queue anyway - most Unix (or Linux) systems use
    Ghostscript to drive non-Postscript printers anyway.

    Hope this helps.

     
  • Nigel Hathaway

    Nigel Hathaway - 2005-12-23
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.