#100 closed defect (fixed)
Ghostscript 9.18 and GSView
Reported by: | David McKenna | Owned by: | |
---|---|---|---|
Priority: | Feedback pending | Milestone: | |
Component: | *none | Version: | |
Severity: | medium | Keywords: | |
Cc: |
Description
I have installed ghostscript 9.18 using yum install ghostscript. I have also set up GSView according to its docs to use the Netlabs ghostscript with the following settings:
Ghostscript DLL: C:\usr\lib\gsdll2.dll
Ghostscript include paths: C:\usr\share\ghostscript\gs9.18\Resource\Init;C:\usr\share\ghostscript\gs9.18\lib;C:\usr\share\fonts;C:\PSFONTS
Ghostscript Options: -dNOPLATFONTS -sFONTPATH="C:\PSFONTS"
I can start GSView and open docs, but only images will display, no text. Is there some other setup I need to do? GSView works without problems with the equivalent settings using Paul's version 9.15 of ghostscript.
Attachments (4)
Change History (39)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Hmmm... I tried changing sFontpath to use a forward slash, but no change. Then I tried the include path - no change. Then the DLL - no change. I'm surprised that both a forward and back slash actually will allow GSView to work at all. In both cases I get no text - only images.
comment:3 by , 9 years ago
ok first which gs rpm did you install? I hope at least 9.18-3.
with this version it should work.
only sFontpath needs forward slash. And IIRC also c:/usr/share/fonts/default/Type1
my sFONTPATH is: "c:/psfonts;c:/usr/share/fonts/default/Type1"
regards
Silvan
comment:4 by , 9 years ago
Silvan,
I have the most recent gs rpm 9.18-4 and ghostscript-fonts 6.0-1. I added c:/usr/share/fonts/default/Type1 to my sFONTPATH but there was no improvement - still don't see any text...
comment:5 by , 9 years ago
thats pretty weird. Do you see any messages in the GSView console. Show messages or such is it called.
comment:6 by , 9 years ago
Thanks for the tip... on pages with text missing I'm seeing this:
Can't find (or can't open) font file C:\usr\share\ghostscript\gs9.18\Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Loading NimbusSanL-Regu font from c:/psfonts/NSans_R.pfb... Error reading a content stream. The page may be incomplete.
File did not complete the page properly and may be damaged.
No idea why it is looking at C:\usr\share\ghostscript\gs9.18\Resource/Font - that is not called out anywhere I know of. There is a NSans_R.pfb file available in c:\psfonts. It was installed by a package called urw_gsfonts811_p1.wpi I don't remember where it came from. I'll try removing it...
comment:7 by , 9 years ago
Well... removing it didn't help, but now the message is different:
Can't find (or can't open) font file C:\usr\share\ghostscript\gs9.18\Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Loading NimbusSanL-Regu font from c:/usr/share/fonts/default/Type1/n019003l.pfb... Error reading a content stream. The page may be incomplete.
File did not complete the page properly and may be damaged.
comment:8 by , 9 years ago
did you try different files? Or always with the same?
I know it doesn't help you much, but I tried several and all worked. Also some other tester did successfully.
comment:9 by , 9 years ago
I tried different files, but the messages I gave came from the same one. The fact it works for you and not me makes me wonder if there is some hidden dependency or setting for ghostscript you have and I don't....
comment:10 by , 9 years ago
Priority: | major → Feedack pending |
---|
do all different files not work? do they show also some messages? could you attach the file giving the message?
by , 9 years ago
Attachment: | AES_128_8125.pdf added |
---|
comment:11 by , 9 years ago
All files (with text) do not show any text, and give the same message on each page. I'll attach an example.
comment:12 by , 9 years ago
shows like a charm here. Please remove the -sNOPLATFONTS switch. I don't have it here.
comment:13 by , 9 years ago
I removed -sNOPLATFONTS, but still don't see any text. I wonder if there is a dll loaded from another program with the same name as a dll needed by ghostscript (which might explain why Paul's ghostscript works and this one doesn't). Is there a tool you know of to list DLL's loaded in memory?
comment:14 by , 9 years ago
I get the same issue here; from File->show messages menu I get this:
GPL Ghostscript 9.18 (2015-10-05) Copyright (C) 2015 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Scanning PDF file Error: /undefined in os2prn,djet500,300x300,150x150,100x100,75x75 Operand stack: Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- false 1 %stopped_push 1967 1 3 %oparray_pop 1966 1 3 %oparray_pop 1950 1 3 %oparray_pop 1836 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- Dictionary stack: --dict:1192/1684(ro)(G)-- --dict:0/20(G)-- --dict:114/200(L)-- Current allocation mode is local Last OS error: No such file or directory Warning: EPS file must not use /quit
comment:15 by , 9 years ago
http://trac.netlabs.org/rpm/browser/tools/check-os2-config.cmd
the output might shed a light
by , 9 years ago
Attachment: | check-os2-config.log added |
---|
comment:18 by , 9 years ago
Yes, many times with many different settings. Also tried downgrading, removing and re-installing many rpm packages but so far no changes. I'll keep poking at it...
comment:19 by , 9 years ago
Here is the entire GSView monitor log for the first page of the PDF I uploaded:
GPL Ghostscript 9.18 (2015-10-05)
Copyright (C) 2015 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
* Warning: GenericResourceDir doesn't point to a valid resource directory.
the -sGenericResourceDir=... option can be used to set this.
Scanning PDF file
%GSVIEW_PDF_PAGES: 1 5
Displaying PDF page 1
%GSVIEW_PDF_PAGE: 1
%GSVIEW_PDF_MEDIA: [0 0 612 792]
%GSVIEW_PDF_CROP: [0 0 612 792]
%GSVIEW_PDF_ROTATE: 0
%GSVIEW_PDF_MARK: /PAGE /CropBox [0.0 0.0 612.0 792.0]
Scanning C:/usr/share/fonts/default/Type1 for fonts... 70 files, 35 scanned, 35 new fonts.
Scanning C:/PSFONTS for fonts... 262 files, 189 scanned, 104 new fonts.
Querying operating system for font files...
Substituting font Helvetica for ArialMT.
Can't find (or can't open) font file C:/usr/share/ghostscript/gs9.18/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Loading NimbusSanL-Regu font from C:/usr/share/fonts/default/Type1/n019003l.pfb... Warning: can't process font stream, loading font by the name.
Substituting font Helvetica for ArialMT.
Can't find (or can't open) font file C:/usr/share/ghostscript/gs9.18/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Loading NimbusSanL-Regu font from C:/usr/share/fonts/default/Type1/n019003l.pfb... Error reading a content stream. The page may be incomplete.
Warning: Tf refers to an unknown resource name: Helvetica Assuming it's a font name.
Can't find (or can't open) font file C:/usr/share/ghostscript/gs9.18/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Loading NimbusSanL-Regu font from C:/usr/share/fonts/default/Type1/n019003l.pfb... Error reading a content stream. The page may be incomplete.
Substituting font Helvetica-Bold for Arial-BoldMT.
Can't find (or can't open) font file C:/usr/share/ghostscript/gs9.18/Resource/Font/NimbusSanL-Bold.
Can't find (or can't open) font file NimbusSanL-Bold.
Loading NimbusSanL-Bold font from C:/usr/share/fonts/default/Type1/n019004l.pfb... Warning: can't process font stream, loading font by the name.
Substituting font Helvetica-Bold for Arial-BoldMT.
Can't find (or can't open) font file C:/usr/share/ghostscript/gs9.18/Resource/Font/NimbusSanL-Bold.
Can't find (or can't open) font file NimbusSanL-Bold.
Loading NimbusSanL-Bold font from C:/usr/share/fonts/default/Type1/n019004l.pfb... Error reading a content stream. The page may be incomplete.
Error reading a content stream. The page may be incomplete.
Error reading a content stream. The page may be incomplete.
File has unbalanced q/Q operators (too many Q's)
Error reading a content stream. The page may be incomplete.
Error reading a content stream. The page may be incomplete.
Error reading a content stream. The page may be incomplete.
File did not complete the page properly and may be damaged.
I also tried installing ghostscript (via ANPM) and GSView on my laptop, and I get the exact same result.
comment:20 by , 9 years ago
could you give me a dir listing of C:/usr/share/fonts/default/Type1
Somehow I soon run out of ideas :(
comment:21 by , 9 years ago
Sure... here it is:
The volume label in drive C is eCS.
The Volume Serial Number is 7C9A:990C.
Directory of C:\usr\share\fonts\default\Type1
3-24-16 6:54a <DIR> 654 a--- .
3-22-16 4:12p <DIR> 654 a--- ..
12-12-14 7:30a 43,100 340 a--- a010013l.afm
12-12-14 7:30a 63,673 339 a--- a010013l.pfb
12-12-14 7:30a 43,043 340 a--- a010015l.afm
12-12-14 7:30a 65,403 339 a--- a010015l.pfb
12-12-14 7:30a 42,984 340 a--- a010033l.afm
12-12-14 7:30a 62,334 339 a--- a010033l.pfb
12-12-14 7:30a 43,244 340 a--- a010035l.afm
12-12-14 7:30a 68,601 339 a--- a010035l.pfb
12-12-14 7:30a 42,337 340 a--- b018012l.afm
12-12-14 7:30a 98,981 339 a--- b018012l.pfb
12-12-14 7:30a 40,814 340 a--- b018015l.afm
12-12-14 7:30a 76,964 339 a--- b018015l.pfb
12-12-14 7:30a 41,572 352 a--- b018032l.afm
12-12-14 7:30a 86,000 339 a--- b018032l.pfb
12-12-14 7:30a 40,855 340 a--- b018035l.afm
12-12-14 7:30a 73,392 339 a--- b018035l.pfb
12-12-14 7:30a 43,304 340 a--- c059013l.afm
12-12-14 7:30a 106,309 339 a--- c059013l.pfb
12-12-14 7:30a 43,113 340 a--- c059016l.afm
12-12-14 7:30a 107,962 339 a--- c059016l.pfb
12-12-14 7:30a 43,476 340 a--- c059033l.afm
12-12-14 7:30a 96,124 339 a--- c059033l.pfb
12-12-14 7:30a 43,322 340 a--- c059036l.afm
12-12-14 7:30a 96,325 339 a--- c059036l.pfb
12-12-14 7:30a 9,381 340 a--- d050000l.afm
12-12-14 7:30a 45,955 339 a--- d050000l.pfb
12-12-14 7:30a 43,198 340 a--- n019003l.afm
12-12-14 7:30a 79,155 339 a--- n019003l.pfb
12-12-14 7:30a 42,970 340 a--- n019004l.afm
12-12-14 7:30a 70,730 339 a--- n019004l.pfb
12-12-14 7:30a 43,829 340 a--- n019023l.afm
12-12-14 7:30a 67,864 339 a--- n019023l.pfb
12-12-14 7:30a 43,535 340 a--- n019024l.afm
12-12-14 7:30a 68,801 339 a--- n019024l.pfb
12-12-14 7:30a 43,051 340 a--- n019043l.afm
12-12-14 7:30a 71,029 339 a--- n019043l.pfb
12-12-14 7:30a 42,706 340 a--- n019044l.afm
12-12-14 7:30a 71,638 339 a--- n019044l.pfb
12-12-14 7:30a 43,292 340 a--- n019063l.afm
12-12-14 7:30a 69,121 339 a--- n019063l.pfb
12-12-14 7:30a 43,226 340 a--- n019064l.afm
12-12-14 7:30a 74,939 339 a--- n019064l.pfb
12-12-14 7:30a 43,432 340 a--- n021003l.afm
12-12-14 7:30a 101,374 339 a--- n021003l.pfb
12-12-14 7:30a 43,360 340 a--- n021004l.afm
12-12-14 7:30a 101,380 339 a--- n021004l.pfb
12-12-14 7:30a 42,264 340 a--- n021023l.afm
12-12-14 7:30a 91,442 339 a--- n021023l.pfb
12-12-14 7:30a 42,361 340 a--- n021024l.afm
12-12-14 7:30a 87,491 339 a--- n021024l.pfb
12-12-14 7:30a 43,561 340 a--- n022003l.afm
12-12-14 7:30a 94,786 124 a--- n022003l.pfb
12-12-14 7:30a 42,114 340 a--- n022004l.afm
12-12-14 7:30a 101,592 339 a--- n022004l.pfb
12-12-14 7:30a 42,283 340 a--- n022023l.afm
12-12-14 7:30a 88,671 339 a--- n022023l.pfb
12-12-14 7:30a 41,456 340 a--- n022024l.afm
12-12-14 7:30a 88,597 339 a--- n022024l.pfb
12-12-14 7:30a 41,954 340 a--- p052003l.afm
12-12-14 7:30a 109,974 339 a--- p052003l.pfb
12-12-14 7:30a 41,583 340 a--- p052004l.afm
12-12-14 7:30a 109,157 339 a--- p052004l.pfb
12-12-14 7:30a 41,795 340 a--- p052023l.afm
12-12-14 7:30a 109,445 339 a--- p052023l.pfb
12-12-14 7:30a 41,072 340 a--- p052024l.afm
12-12-14 7:30a 114,176 339 a--- p052024l.pfb
12-12-14 7:30a 9,686 340 a--- s050000l.afm
12-12-14 7:30a 33,709 339 a--- s050000l.pfb
3-24-16 6:54a 4,097 0 a--- Type1.txt
12-12-14 7:30a 40,416 340 a--- z003034l.afm
12-12-14 7:30a 91,063 339 a--- z003034l.pfb
73 file(s) 4,371,943 bytes used
25,270,693 K bytes free
Could I see your config.log? I could try to install the exact same packages as you have and see if that helps....
comment:22 by , 9 years ago
could you create a config.log after a fresh reboot and only gsview running?
comment:25 by , 9 years ago
Thanks, Silvan. Just FYI... I wiped my eCS partition on my laptop and then installed eCS 2.2 with Scitech DD, CardBus support, no CUPS nor RSJ CD-ROM, added Tame - everything else default. After installing eCS and adjusting the screen resolution, I updated WarpIn, then installed ANPM and updated everything already installed to the latest i686 versions. After a reboot, I installed Ghostscript using ANPM (and all the required dependencies), then installed GSView 5.0. I still get the exact result already reported....
comment:26 by , 9 years ago
Warning: GenericResourceDir? doesn't point to a valid resource directory.
Loading NimbusSanL-Regu font from C:/usr/share/fonts/default/Type1/n019003l.pfb... Warning: can't process font stream,
Do you still see the above 2 errors? As, as long as those are present, it can't work. But I'm still in the dark why you get them.
comment:27 by , 9 years ago
Yes, the message I get when opening the first page of the PDF I uploaded here is exactly the same as the one I posted in comment 19.
by , 9 years ago
comment:30 by , 9 years ago
GhostscriptInclude=C:/usr/share/ghostscript/gs9.18/Resource/Init;C:/usr/share/ghostscript/gs9.18/lib;C:/usr/share/fonts/default/Type1;C:/PSFONTS
it's more than enough to have c:/usr/lib in this path.
And then it should work.
comment:31 by , 9 years ago
Added C:/usr/lib to beginning of GhostscriptInclude=, but it made no difference....
comment:33 by , 9 years ago
That did it! Thanks, Sylvan...I wonder why those other paths caused trouble? Anyway - now its on to testing CUPS....
comment:34 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
cups rpm? if version 2.1.3 don't give too much hope atm. I know of several issues. I'm investigating with other testers.
I close this one, as fixed.
Btw I don't know why you added those path at all. IIRC it was never needed. With the rpm version there is no path needed at all.
comment:35 by , 9 years ago
The instructions for GSView and Paul Smedley called out similar paths which worked, so I just assumed the equivalent paths were needed with the Netlabs version - obviously I was wrong there. Thanks again. Also thanks for the warning with CUPS. I'll probably try it anyway :-)
The path need forward slashes. At least the one for sfontpath. Iirc andy wanted to fix this issue in gsview.