cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Ghostscript and PDF

Former Member
0 Likes
2,194

Hi.

I followed one of the guides here, and finally managed to create a valid PDF in PB12.5 using Ghostscript and dw_data.saveas()! Yay!

However, I have some questions.

First of, I installed GS8.71 and restarted my computer.

Then I installed GS9.18, restarted the computer holding down SHIFT to install the printer with an unsigned driver (Windows 10).

Then I created a PDF using dw_data.saveas(), and it says in the properties that it's created using Ghostscript 8.71.

I uninstalled both GS8.71 and GS9.18, removed the "gs" folder in C:\Program Files\ and restarted.

I reinstalled only gs9.18 and now the properties in the PDF says "Ghostscript 9.18". Which makes me think that GS8.71 is not necessary anymore?

So my questions is:

Do I really need to install GS8.71 first? It looks like GS9.18 is working great on it's own?

And how can we distribute GS to all our customers without having to install it on every client computer?

Can the "Sybase Datawindow PS" printer perhaps be a network printer which all client computers can access instead of a local printer?

And finally: will it be possible to save a datawindow as PDF (native, without installing GS) in future versions of PowerBuilder?

Perhaps Armeen Mazda in Appeon would like to comment this?

Regards,

Bjarne

View Entire Topic
arnd_schmidt
Active Contributor
0 Likes

There is no need to install / remove multiple versions of ghostscript. GS 9.18 is doing find.

You can install the printer via a batch file or like Roland shows it: Topwiz Software - PrinterInstall

If you want to use a network printer that acts to "create pdf file" the only experience I have is to use a linux box that will handle the stuff.

For example:  https://www.steveroot.co.uk/2013/10/24/network-pdf-printing-from-windows-8/

regards

Arnd

Former Member
0 Likes

Hi Arnd;

  Just retested GS 9.18 64 bit with W7 and W10 64 bit and PDF generation does NOT work without GS8.71 installed as well.

Regards ... Chris

PS: The good news at least is that GS 9.18 works OK with v8.71 on W7 & W10. 

arnd_schmidt
Active Contributor
0 Likes

Chris, the gs 64-bit won't work out of the box, but there is no need for gs8.71.

https://scn.sap.com/thread/3535221

or

PowerBuilder PDF Printing on 64 bit O/S « eLearnIT eLearnIT

Former Member
0 Likes

Sorry ... just tested it all again and you need v8.71 when installing the 64 bit version otherwise you get a FAILED message in the PB IDE and a -1 RC on the SaveAs ( ). Once v8.71 is installed, then v9.18 works like a charm.

Are you guys running the 32 bit version?

We are not allowed to install the 32bit GS here at my government clients when the O/S is 64bit. Especially on a W2012 or higher file server.

Former Member
0 Likes

I've only installed the 64-bit version because of Win10 x64 OS.

Now I will try once more to uninstall all the versions of GS I have, and only install GS9.18 x64.

I've removed every instance of GhostScript in Control Panel.

Is there anything else I need to do to completely remove all traces of GhostScript?

Regards,

Bjarne

Former Member
0 Likes

Hi Bjarne;

   Just because you uninstalled - does not mean that the version of GS is gone. Check your "Program Files" folders ....

PS: Also check if you have any 32 bit versions installed as well under ""Program Files (x86)".

Regards ... Chris

Former Member
0 Likes

Nothing left in C:\Program Files

The only thing that looks like GS in C:\Program Files(x86) is a folder named "GPLGS".

Should I remove that as well?

Regards,

Bjarne

Former Member
0 Likes

Hmmm .. I do not have this folder or can even remember seeing it before (or a variation thereof).

My suggestion would be to first rename it and see if your PC environment has any noticeable impacts. If not, then its probably OK to remove it if you don't think that its being used.

Former Member
0 Likes

Well, I uninstalled everything in Control Panel now.

I also removed everything looking like "GhostScript" and GSx.xx" in C:\Program Files and removed C:\Program Files(x86)\GPLGS.

I restarted the computer and installed only GS9.18 x64.

Here is the result:

It's in Norwegian, but you get the essence: 233 pages, 749 Kb in size and is generated from GPL GhostScript 9.18 in PowerBuilder 12.5.2 (build 5703) in Windows 10 x64.

Regards,

Bjarne