Skip to Content
avatar image
Former Member

PB11 + windows 2012 R2 + ghostscript save as PDF ?

Hi guys,

I have read all the recent posts about powerbuilder and ghostscript.

I have downloaded GS v.9.20 for a windows2012 R2 installation , PB11.5.1.

Anyone got GS sybase datawindow PS working on a windows 2012 R2 please ? If yes, which gs version ? Any manual changes to perform to make this work ? No matter what i end up receiving 0 kb PDF files.

Been looking at this issue for 2 days straigth ...

TIA
John

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Nov 18, 2016 at 04:03 PM

    Hi John;

    Did you use the 64bit version of GS in your W2012R2 environment?

    Regards ... Chris

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 19, 2016 at 08:05 AM

    Hi Chris,

    Thanks for your reply.
    Yes, to be honest i tried them both 32 and 64. And so many other GS versions besides 9.20.

    Do you have it working on a 2012 R2 Chris ?

    TIA

    John

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 21, 2016 at 03:10 AM

    Hi John,

    I think I posted this on the old forum so you may have already seen it and the versions I used were a bit different, but this is what I had to do to get Ghostscript PDF working for a PB 10.5 application on Windows Server 2012.

    1. I installed the 32 bit version of Ghostscript and printer driver (Version 9.19)

    2. Then I had to add the Ghostscript printer driver to the registry for the default account (see https://support.microsoft.com/en-au/kb/184291)

    This is the registry file I ran to do that:

    Windows Registry Editor Version 5.00

    [HKEY_USERS\.DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\Devices]
    "Ghostscript PDF"="winspool,FILE:"

    [HKEY_USERS\.DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts]
    "Ghostscript PDF"="winspool,FILE:,15,45"

    [HKEY_USERS\.DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\Windows]
    "UserSelectedDefault"=dword:00000001
    "Device"="Ghostscript PDF,winspool,FILE:"

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 21, 2016 at 01:39 PM

    For some versions of PowerBuilder, if you use the 64bit version as Chris suggests, you have to copy/rename gswin64.exe to gswin32.exe as it is hard coded within the PB runtime. In later versions they changed it to somehow figure out which one to use.

    Add comment
    10|10000 characters needed characters exceeded