[Okular-devel] [okular] [Bug 319426] Printing text-only PDF files results in empty pages
Robi
sqn14 at libero.it
Fri May 10 12:23:42 UTC 2013
https://bugs.kde.org/show_bug.cgi?id=319426
--- Comment #9 from Robi <sqn14 at libero.it> ---
(In reply to comment #8)
> Can you try this?
>
> Open a terminal, run
> pdftops mypdffile.pdf
> gs mypdffile.ps
>
> Does it work?
Albert,
first of all thanks for your time spent in looking into this issue.
The command "pdftops myfile.pdf" works fine: a mypile.ps is produced in the
same directory of the source PDF file.
The command "gs myfile.ps" fails with the following output:
GPL Ghostscript 9.05 (2012-02-08)
Copyright (C) 2010 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Can't find (or can't open) font file
/usr/share/ghostscript/9.05/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Can't find (or can't open) font file
/usr/share/ghostscript/9.05/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Querying operating system for font files...
Can't find (or can't open) font file
/usr/share/ghostscript/9.05/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Didn't find this font on the system!
Substituting font Courier for NimbusSanL-Regu.
Loading NimbusMonL-Regu font from /home/robi/.fonts/n/nimbusmonl.ttf... 3463880
2046935 4785472 3446373 1 done.
Can't find (or can't open) font file
/usr/share/ghostscript/9.05/Resource/Font/NimbusSanL-Bold.
Can't find (or can't open) font file NimbusSanL-Bold.
Can't find (or can't open) font file
/usr/share/ghostscript/9.05/Resource/Font/NimbusSanL-Bold.
Can't find (or can't open) font file NimbusSanL-Bold.
Didn't find this font on the system!
Unable to substitute for font.
Error: /invalidfont in /findfont
Operand stack:
F10_0 1 1 --nostringval-- Helvetica-Bold
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1878 1 3 %oparray_pop
1877 1 3 %oparray_pop 1861 1 3 %oparray_pop 1755 1 3
%oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval--
--nostringval-- --nostringval-- 2 %stopped_push --nostringval--
--nostringval-- 1836 5 4 %oparray_pop
Dictionary stack:
--dict:1160/1684(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)--
--dict:67/75(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 14585
GPL Ghostscript 9.05: Unrecoverable error, exit code 1
robi at clodius ~ $ gs -I /usr/share/fonts/urw-fonts Documenti/dsniff-n-mirror.ps
GPL Ghostscript 9.05 (2012-02-08)
Copyright (C) 2010 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /ioerror in --run--
Operand stack:
--nostringval-- --nostringval-- ( )
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1878 1 3 %oparray_pop
--nostringval--
Dictionary stack:
--dict:1160/1684(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)--
Current allocation mode is local
Last OS error: 21
GPL Ghostscript 9.05: Unrecoverable error, exit code 1
Then i've tried to feed "gs" with an additional path for " NimbusSanL-Bold"
font, of which I now it's installed in /usr/share/fonts/urw-fonts. I did this
using -sFONTPATH option for "gs":
gs -sFONTPATH="/usr/share/fonts/urw-fonts" mypdf.ps
GPL Ghostscript 9.05 (2012-02-08)
Copyright (C) 2010 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Can't find (or can't open) font file
/usr/share/ghostscript/9.05/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Can't find (or can't open) font file
/usr/share/ghostscript/9.05/Resource/Font/NimbusSanL-Regu.
Can't find (or can't open) font file NimbusSanL-Regu.
Scanning /usr/share/fonts/urw-fonts for fonts... 108 files, 36 scanned, 35 new
fonts.
Loading NimbusSanL-Regu font from /usr/share/fonts/urw-fonts/n019003l.pfb...
3540336 2206329 3894024 2600972 1 done.
Loading NimbusSanL-Bold font from /usr/share/fonts/urw-fonts/n019004l.pfb...
3662064 2323999 3914208 2615041 1 done.
Loading NimbusRomNo9L-Regu font from /usr/share/fonts/urw-fonts/n021003l.pfb...
3829680 2488862 3914208 2625436 1 done.
Loading NimbusRomNo9L-Medi font from /usr/share/fonts/urw-fonts/n021004l.pfb...
3997184 2653648 3934392 2639289 1 done.
Loading NimbusMonL-Regu font from /usr/share/fonts/urw-fonts/n022003l.pfb...
4141048 2798050 3954576 2653542 1 done.
Loading NimbusRomNo9L-ReguItal font from
/usr/share/fonts/urw-fonts/n021023l.pfb... 4305624 2953321 3954576 2663867 1
done.
Loading NimbusMonL-Bold font from /usr/share/fonts/urw-fonts/n022004l.pfb...
4449536 3104975 3974760 2677608 1 done.
Loading StandardSymL font from /usr/share/fonts/urw-fonts/s050000l.pfb...
4510088 3006001 3974760 2641149 1 done.
Loading NimbusRomNo9L-MediItal font from
/usr/share/fonts/urw-fonts/n021024l.pfb... 4553272 3127029 3974760 2651474 1
done.
>>showpage, press <return> to continue<<
This time it worked...
Could it be a distro-specific problem?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list