Postscript-Viewer (ps, eps)

Viewer and VFS (Virtual File System) plugins.

Postscript-Viewer (ps, eps)

Postby Dinkelhopper » 16 Jan 2009, 01:08

View Postscript- (*.ps) and EncapsulatedPostscript-Files (*.eps) in DOpus-Viewer pane with this simple Viewer-Plugin.

Ghostscript has to be installed (you'll need the Ghostscript-Dll at least)

It should work under 32bit XP and Vista.

Feedback is welcome :)

Current Version: 1.1.1 (11.02.09)

Please take a look at these files:
readme.txt => further information and usage
history.txt => changelist

ATTENTION:
Referring to this post, please use my PlugIns only with DOpus 9.1.1.8 or higher! I'll limit the usage to this version in a further release. Thanks.
Attachments
PSViewer.zip
(272.36 KB) Downloaded 1383 times
Last edited by Dinkelhopper on 16 Mar 2009, 04:55, edited 12 times in total.
Dinkelhopper
 
Posts: 134
Joined: 22 Nov 2008, 08:45
Location: Germany

Postby Bootman » 19 Jan 2009, 09:37

hey i am running 64 bit vista and 64 bit dopus - the plugin is not showing up - i have ghostscript installed also i copied the .dll to the viewers direcory .....

so far nothing :(
Bootman
 
Posts: 24
Joined: 07 Jan 2009, 12:00

Postby Dinkelhopper » 19 Jan 2009, 11:24

Sorry, but I am not able to test the Plugin under 64bit Windows :(
Did you copy the GS-Dll into DOpus' Root Directory?

Anyone else with 64bit Windows here, who have tested the Plugin?
Dinkelhopper
 
Posts: 134
Joined: 22 Nov 2008, 08:45
Location: Germany

Postby leo » 20 Jan 2009, 15:17

Anyone else with 64bit Windows here, who have tested the Plugin?

Since the plugin is a 32-bit DLL it won't load at all in the 64-bit versions of Opus. A 64-bit DLL would need to be compiled (or some kind of 64-bit -> 32-bit proxy plugin made).

[s]64-bit users who want to display Postscript files should be able to do so by installing Ghostscript, from what I have read. The Ghostscript installer installs a viewer for Internet Explorer and the ActiveX + Preview + Office + Web plugin for Opus can be configured to take advantage of that: Go to Preferences - Plugins - Viewer Plugins, select the ActiveX plugin and click Configure, then add the .ps and .eps extensions under the Internet Explorer (32-bit) section. Those file extensions will then be displayed in the Opus viewer pane via IE.

(The ActiveX plugin uses a 64-bit to 32-bit proxy where necessary so a 64-bit version of Ghostscript is not needed.)[/s]

Update: Turns out this is incorrect. Ghostview does not provide a viewer that works in Internet Explorer, despite its webpage suggesting it does.
Last edited by leo on 25 Jan 2009, 09:11, edited 1 time in total.
User avatar
leo
Admin
 
Posts: 14698
Joined: 07 Nov 2004, 01:30
Location: London, UK
OS: Windows 7 64-bit
Opus: Illuminati

Postby Dinkelhopper » 20 Jan 2009, 21:08

leo wrote:
Anyone else with 64bit Windows here, who have tested the Plugin?

Since the plugin is a 32-bit DLL it won't load at all in the 64-bit versions of Opus. A 64-bit DLL would need to be compiled (or some kind of 64-bit -> 32-bit proxy plugin made).

Thanks for this useful information. I never worry about 64bit architecture specifics until now :?
Dinkelhopper
 
Posts: 134
Joined: 22 Nov 2008, 08:45
Location: Germany

Postby leo » 21 Jan 2009, 03:15

With C++ and Visual Studio, making 64-bit builds is generally very easy. You usually don't have to do much more than recompile with different settings and maybe fix some bugs where pointers are cast to 32-bit numbers and truncated, usually due to Win32 GUI stuff.

That is if there are 64-bit versions, or source code, for all of your (in-process) dependencies. If you can't make 64-bit versions of the dependencies then things become more complex since 64-bit code cannot load/include 32-bit code in the same process.

I don't know much about Delphi and 64-bit, though. I've read that Borland aren't going to release an x64 Delphi compiler and apparently want people to switch to Delphi.Net, but that could be old information.

Update: 64-bit support is on the Delphi roadmap for mid 2009, apparently.

For testing, if you don't have a spare machine to install x64 Windows, you can use VMWare since it lets you run a 64-bit guest OS on a 32-bit host.
Last edited by leo on 25 Jan 2009, 09:10, edited 1 time in total.
User avatar
leo
Admin
 
Posts: 14698
Joined: 07 Nov 2004, 01:30
Location: London, UK
OS: Windows 7 64-bit
Opus: Illuminati

Postby Dinkelhopper » 21 Jan 2009, 03:45

leo wrote:I've read that Borland aren't going to release an x64 Delphi compiler and apparently want people to switch to Delphi.Net, but that could be old information.

I hope they won't :shock:
If they do against my expectations I'll change to Visual C#

leo wrote:For testing, if you don't have a spare machine to install x64 Windows, you can use VMWare since it lets you run a 64-bit guest OS on a 32-bit host.

I have a machine, but not an OS ;)
Dinkelhopper
 
Posts: 134
Joined: 22 Nov 2008, 08:45
Location: Germany

Closing viewer closes Dopus

Postby Venia Legendi » 22 Jan 2009, 04:38

Thanks, works fine.

But opening vasarely.ps from GS examples using gs32.dll from GS 8.63 shows the file correctly but closing the viewer closes DOpus (not only current lister), no warning, no error.

(Vista, DOpus portable 9.1.1.3.3190.x86)

Addendum 20090206:
PROBLEM VANISHES WITH DOpus 9.1.1.7.3307
Last edited by Venia Legendi on 05 Feb 2009, 23:35, edited 1 time in total.
Venia Legendi
 
Posts: 14
Joined: 25 Jul 2007, 07:31

Postby Dinkelhopper » 22 Jan 2009, 05:22

Hmm, I can't reproduce this.
Anyone else who can?

Is it only the mentioned file?
Dinkelhopper
 
Posts: 134
Joined: 22 Nov 2008, 08:45
Location: Germany

Postby Venia Legendi » 22 Jan 2009, 06:37

From the GS examples also tiger.ps and snowflake.ps show this behavior, the rest is OK.

Interestingly (if I open viewer pane in the lister) I can change files and the view updates, but
* closing the pane (if I had viewed one of this files) closes DOpus
* changing to often (also only if i had viewed one of this files) closes DOpus also

Seems to be something with the PS.

Not severe, I can live with it, my "normal" ps files work like a charm

Addendum 20090206:
PROBLEM VANISHES WITH DOpus 9.1.1.7.3307
Last edited by Venia Legendi on 05 Feb 2009, 23:35, edited 1 time in total.
Venia Legendi
 
Posts: 14
Joined: 25 Jul 2007, 07:31

Postby Dinkelhopper » 22 Jan 2009, 22:51

I am awfully sorry but I can't still reproduce this behavior yet with DOpus 9.1.1.6.3274 and Ghostscript 8.14 :?
Dinkelhopper
 
Posts: 134
Joined: 22 Nov 2008, 08:45
Location: Germany

Postby Venia Legendi » 23 Jan 2009, 00:29

Dinkelhopper wrote:I am awfully sorry but I can't still reproduce this behavior yet with DOpus 9.1.1.6.3274 and Ghostscript 8.14 :?


Thanks, I will update DOpus and come back with results. Thank you very much.

Addendum 20090206:
PROBLEM VANISHES WITH DOpus 9.1.1.7.3307
THANK YOU
Last edited by Venia Legendi on 05 Feb 2009, 23:35, edited 1 time in total.
Venia Legendi
 
Posts: 14
Joined: 25 Jul 2007, 07:31

Postby Bootman » 25 Jan 2009, 07:15

hello, i tried your suggestion about activex but now this happens when i click on an .eps file ...

i have ghostscript installed as well as gsview both latest versions

(see image)

Image
Bootman
 
Posts: 24
Joined: 07 Jan 2009, 12:00

Postby leo » 25 Jan 2009, 09:09

Bootman, you're right. GhostView's web page makes it sound like it allows you to view Postcript files in Internet Explorer but that seems not to be the case.
User avatar
leo
Admin
 
Posts: 14698
Joined: 07 Nov 2004, 01:30
Location: London, UK
OS: Windows 7 64-bit
Opus: Illuminati

Postby Dinkelhopper » 05 Feb 2009, 12:43

Bugfixrelease (Post #1)
Dinkelhopper
 
Posts: 134
Joined: 22 Nov 2008, 08:45
Location: Germany

Next

Return to Plugins