on 04-10-2014 12:08 AM
On Windows 7 64bit I am having trouble with SaveAs PDF.
It works fine for PB9 but PB10 and higher fail. I have tried Ghostscript 8.71 and 9.00 32bit.
Hello Roland,
we had all sorts of trouble with this and tried several versions of Ghostscript with our PB 12.1. The only one we found that would work was 8.70.
HTH, Paul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Roland;
This is completely incorrect ..... you must never use a 32 bit version of GS on a 64 bit version of the MS-Windows O/S!!!!!!
1) Download and install GS 8.71 64 bit version.
2) Install GS 8.71 and make sure that you set the GS_DLL environment variable ...
ie: GS_DLL=C:\Program Files\GS\gs8.71\bin
3) Install the "Sybase DataWindow PS" printer from the GS 8.71 64 bit .INF file located in the GS install's LIB sub-folder
4) Optional: Add the GS BIN folder to your system path
5) Reboot your PC.
Now, PDF support should be working in PB 10 and higher on your 64 bit MS-Windows machines.
Note: v8.71 of GS has some key fonts that are not included in later releases of GS and these fonts are also no longer included with newer MS-Windows versions either. So what ever you do ... never delete GS 8.71 from your machine.
You can now upgrade GS as follows:
a) Download and install the latest GS version 9.x or higher 64 bit version
Do not uninstall GS 8.71
b) Install GS 9.x and make sure that you set the GS_DLL environment variable ...
ie: GS_DLL=C:\Program Files\GS\gs9.01\bin (for example)
c) Delete the old "Sybase DataWindow PS" printer definition
d) Install a new "Sybase DataWindow PS" printer from the GS 9.x 64 bit .INF file located in the GS install's LIB sub-folder.
e) Optional: replace the GS 8.71 BIN folder in your system path with the GS 9.x BIN location.
f) Reboot your PC.
FWIW: This procedure works for me and all my clients every time! Tested with PB 10.5 through all versions to PB 12.5.2
HTH
Regards ... Chris
PowerBuilder 12 or 12.5 will not work with GhostScript 9.X 64-bit because the ghostscript executed is named gswin64c.exe. PowerBuilder is looking for gswin32c.exe.
You can rename the gswin64c.exe to gswin32c.exe and Ghostscript 9.X should work ok.
This issue was fixed in PowerBuilder 12.5.2 (build 5006).
This information is also listed in KBA 1895292 (its a https link).
I have some additional information. Windows 8 and 8.1 will not allow you to install unsigned drivers.
There is a startup setting to disable this restriction. Watch this video to see how it is done:
How to disable driver signature enforcement - Windows 8.1 & 8 - YouTube
My experience was that the Add Printer window would reappear almost immediately with no error message at all.
I have found that Windows 8 has a lot of arbitrary changes that make things more difficult. For example, to change a wireless connection from Public to Private, you have to go through several screens to 'Forget' it and then reconnect. The option to rename a connection is completely removed. They are also doing an extremely poor job making sure things are compatible. This week they released an update to Excel & Word that causes an error in Windows Update. You have to download the update file and run it manually. Also, a change they made in November has broken Winhlp32.exe so old fashioned help files can no longer be used.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Interesting that 12.6 has references to such old versions in it.
I just installed the latest version 9.19 32-bit and it works perfectly with PB 10.5 on Windows 7 64bit.
I think that you have to use the 32bit version since PowerBuilder is 32bit. Chris says it depends on the bitness of Windows. In my experience that hasn't been the case. Luckily Appeon is replacing Ghostscript with the PDF generation code they developed for their existing products.
Hi Roland;
I just tried the latest GhostScript release that you mentioned ...
1) GS 9.19 would only install / work with the 64 bit version on my W10 64 bit PC's. The 32 bit version would not install under W10.
2) For the 1st time, you no longer need GS version 8.71 to remain/be installed when using GS 9.19 to handle the font mappings properly!
Note to All: You must install the "Sybase DataWindow PS" printer from the ghostpdf.inf provided in "C:\Program Files\gs\gs9.19\lib" folder!
Regards ... Chris
Hi,
I'm facing an issue to print DW to PDF on PB11.5, Windows 7 (x64)..
1. I installed GhostScript 8.70. (x64)
2. Added a new Printer with Printer Name as "Sybase DataWindow PS" and Port: FILE
and mapped "C:\Program Files\gs\gs8.70\lib\ghostpdf.inf".
3. Print a Test Page as PDF. It is generated PDF but when I open getting following error message.
4. And when I do through PB code, got a PDF file with 0KB.
I much appreciated your assistance.
Thank you in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Madhu;
I would strongly recommend that you follow these steps exactly when configuring GhostScript for PB 11.5.x as well ...
Creating pdf files in powerbuilder 12.1 classic... | SCN
HTH
Regards ... Chris
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.