I wonder if there is a way to view .ps files without downloading/saving them while one using the Google chrome?
Just double-click on the file in question and choose your preferred program from the options provided by your computer. A bit of tinkering with the extensions will also allow you to open PS files using your web browser — specifically the PostScript Viewer and Compiler for Chrome.
To open a PostScript file (. ps extension) or PDF file (. pdf), select File -> Open, or type cmd-O. You will then be presented with the dialog box from which you can select the file to open.
To view PDF files, use the gpdf application. For PS files, use ggv. Both gpdf and ggv are integrated into Nautilus. Double-clicking on a PDF or PS file while in Nautilus opens the file in the large pane of the Nautilus window.
There is currently no way to view .ps (PostScript) files in Google Chrome.
I can imagine two ways to get the desired result though:
Implement a PostScript parser, and integrate it in PDF.js.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With