Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #3297
| From | John Forkosh <forkosh@panix.com> |
|---|---|
| Newsgroups | comp.lang.postscript |
| Subject | Re: ps viewer, like ViewerJS, that can embed an <iframe> in an html page |
| Date | 2018-08-18 12:51 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <pl94oi$a6q$1@reader1.panix.com> (permalink) |
| References | <pjv87o$q9s$1@reader1.panix.com> <43bfb5cc-97e7-4e99-badd-4e5276c2fb6f@googlegroups.com> <pk6anq$1jd$1@reader1.panix.com> <20180817183639.e35bde1b098dd134fd12caab@free.fr> |
Jean-Francois Moine <moinejf@free.fr> wrote: > On Sun, 5 Aug 2018 07:58:50 +0000 (UTC) > John Forkosh <forkosh@panix.com> wrote: >> luser droog <luser.droog@gmail.com> wrote: >> > On Thursday, August 2, 2018 at 10:33:12 AM UTC-5, John Forkosh wrote: >> >> I'd like to display postscript files within <iframe>'s on my html pages, >> >> pretty much exactly like I'm already doing for pdf files using >> >> https://viewerjs.org/ >> >> with a tag something like >> >> <iframe src="/ViewerJS/#../somefile.pdf" width=400 height=300></iframe> >> >> Except I want that to be somefile.ps instead of .pdf >> <<snip>> >> >> > If the input were a more limited set of postscript operators, then >> > handling that might be an appropriately sized JavaScript project for >> > a small team in a short time. And you might find a few ps.js projects >> > that already do the job within these kind of constraints. >> >> In case you're curious about this kind of stuff, >> the only thing I was able to find is >> https://github.com/zaphod42/PostscriptJS > [snip] > > Some time ago, I found wps.js which works fine enough: > http://logand.com/sw/wps/ That kind of looks promising, but I'm not seeing any kind of "download link" for wps anywhere on that page (nor anywhere else I looked on logan.com). For that https://viewerjs.org/ stuff, you just download ViewerJS-latest.zip and unzip it in the root directory of your site, automatically creating a ViewerJS/ subdirectory with all the software you need. Then a simple tag like <iframe src="/ViewerJS/#../somefile.pdf" width=400 height=300></iframe> "magically" displays the pdf file. Took me all of five minutes to get it working out-of-the-box (and I didn't even have to look inside the box, just unzip it). > I am using it in my project abc2svg (see modules/wps.js in > https://chiselapp.com/user/moinejf/repository/abc2svg). > I just changed the HTML5 output to SVG. Yeah, I certainly would "see modules/wps.js" to see how you're using wps, which I couldn't figure out from that .../sw/wps/ page, except I'm not seeing wps anywhere on your abc2svg page at all. -- John Forkosh ( mailto: j@f.com where j=john and f=forkosh )
Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar
ps viewer, like ViewerJS, that can embed an <iframe> in an html page John Forkosh <forkosh@panix.com> - 2018-08-02 15:33 +0000
Re: ps viewer, like ViewerJS, that can embed an <iframe> in an html page John Reiser <vendor@BitWagon.com> - 2018-08-03 16:59 -0700
Re: ps viewer, like ViewerJS, that can embed an <iframe> in an html page John Forkosh <forkosh@panix.com> - 2018-08-04 09:08 +0000
Re: ps viewer, like ViewerJS, that can embed an <iframe> in an html page luser droog <luser.droog@gmail.com> - 2018-08-04 07:10 -0700
Re: ps viewer, like ViewerJS, that can embed an <iframe> in an html page John Forkosh <forkosh@panix.com> - 2018-08-04 15:17 +0000
Re: ps viewer, like ViewerJS, that can embed an <iframe> in an html page Eli the Bearded <*@eli.users.panix.com> - 2018-08-04 23:59 +0000
Re: ps viewer, like ViewerJS, that can embed an <iframe> in an html page John Forkosh <forkosh@panix.com> - 2018-08-05 08:30 +0000
Re: ps viewer, like ViewerJS, that can embed an <iframe> in an html page John Forkosh <forkosh@panix.com> - 2018-08-05 07:58 +0000
Re: ps viewer, like ViewerJS, that can embed an <iframe> in an html page Jean-Francois Moine <moinejf@free.fr> - 2018-08-17 18:36 +0200
Re: ps viewer, like ViewerJS, that can embed an <iframe> in an html page John Forkosh <forkosh@panix.com> - 2018-08-18 12:51 +0000
Re: ps viewer, like ViewerJS, that can embed an <iframe> in an html page Jean-Francois Moine <moinejf@free.fr> - 2018-08-18 20:22 +0200
Re: ps viewer, like ViewerJS, that can embed an <iframe> in an html page John Forkosh <forkosh@panix.com> - 2018-08-21 09:07 +0000
csiph-web