8

I wonder if there is a way to view .ps files without downloading/saving them while one using the Google chrome?

math137
  • 183
  • 1
  • 7
  • As a user, or as a developer? – Rob W Jan 16 '15 at 22:38
  • @RobW as a user of google chrome – math137 Jan 16 '15 at 22:50
  • 1
    Such questions belong to http://superuser.com. And there is currently no public way of viewing Postscript files in Chrome. – Rob W Jan 16 '15 at 22:51
  • Thank you, would you recommend deleting the question? – math137 Jan 16 '15 at 22:52
  • 1
    I suggest to keep it around. Even the confirmation that Postscript files cannot be displayed in Google Chrome may be useful to some (this question is already ranked at the top in Google's search results for this question). – Rob W Jan 16 '15 at 22:54
  • By the way, do you have an immediate need for this feature, or is it just a hypothetical question? – Rob W Jan 16 '15 at 23:16
  • it is just annoying when I come across ps files (which is not frequent). – math137 Jan 16 '15 at 23:17
  • 1
    Same for me, mainly old research documents. Are you any good at creating artwork/icons? If someone wants to desing a decent-looking icon, then I'm willing to develop and upload an extension to the Chrome Web Store for viewing PostScript files. Ssee my profile for my email address if you want to discuss this further. – Rob W Jan 16 '15 at 23:23
  • that is good, thank you. I am only drawing some diagrams for my research, using xfig. – math137 Jan 16 '15 at 23:30

3 Answers3

4

There is currently no way to view .ps (PostScript) files in Google Chrome.

I can imagine two ways to get the desired result though:

  1. Convert the postscript file to PDF with some third-party utility and use Chrome's built-in PDF Viewer (or the PDF.js PDF Viewer Chrome extension) to display the PDF file. (this is relatively easy and can be implemented as a Chrome extension)
  2. Implement a PostScript parser, and integrate it in PDF.js.

Nayuki
  • 17,911
  • 6
  • 53
  • 80
Rob W
  • 341,306
  • 83
  • 791
  • 678
  • 1
    Try the following ps to pdf converter (free for personal use): http://rampantlogic.com/psview/index.html – bardo Dec 31 '15 at 15:45
4

I compiled GhostScript 9.26 in Web Assembly and wrote a small wrapper to allow direct display of PostScript files in Chrome. You can find it here:

https://chrome.google.com/webstore/detail/ps-wasm/ebpiondkhkldijolgmhfenknngkkjola

Ocha
  • 41
  • 2
-1

You may try to use another open source browser. For example, the 2018_12 up-to-date openSUSE package collection version of the

http://www.seamonkey-project.org/

opens the .ps file in an external program in 2 clicks:

  1. click displays the ps-file as "source code"
  2. the "source code" view has a button titled "Open in External Program..." and after clicking that button the default .ps viewer application is launched.

At the time of the writing of this comment, the SeaMonkey web browser also supports the various old-school Java applets. A page with a Java applet:

http://math.hws.edu/TMCM/java/xSortLab/

The SeaMonkey also has a WYSIWYG-HTML-Editor, which unfortunately generates the pre-HTML5 HTML, but for users with non-IT-background it can still be very helpful as a static web site based document creation tool.

Thank You for reading my comment.

Martin Vahi
  • 129
  • 1
  • 5