Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Okular 0.17.2 can't print, shows its icon in print preview
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
kaTiezei
n00b
n00b


Joined: 10 Mar 2013
Posts: 39

PostPosted: Wed Jan 22, 2014 6:33 pm    Post subject: Okular 0.17.2 can't print, shows its icon in print preview Reply with quote

Hello,

I cannot print several pdfs using Okular, for example this one on this wikipedia: https://de.wikipedia.org/wiki/Datei:GNU_Free_Documentation_License_Version_1.2_dreispaltig.pdf .
Nothing happens. And when I view documents like that one in the print preview, Okular's icon is shown in the top left corner. GS can't deal with it either. It seems it can't find the font. Maybe it is because I am using infinality.


Code:
okular --version
Qt: 4.8.5
KDE: 4.11.2
Okular: 0.17.2


Okular output on clicking print preview:

Code:
okular(4899)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(4899)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(4899)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(4899)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(4899)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
invalidfont -10
invalidfont -10
okular(4899)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [88x124]
QImage::scaled: Image is a null image
invalidfont -10
invalidfont -10
okular(4899)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [1321x1869]
QImage::scaled: Image is a null image
invalidfont -10
invalidfont -10
okular(4899)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [78x110]
QImage::scaled: Image is a null image



GS output with the same file:
Code:
gs GNU_Free_Documentation_License_Version_1.2_dreispaltig.pdf
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.
Processing pages 1 through 1.
Page 1
Can't find (or can't open) font file /usr/share/ghostscript/9.05/Resource/Font/TimesNewRomanPSMT.
Can't find (or can't open) font file TimesNewRomanPSMT.
Can't find (or can't open) font file /usr/share/ghostscript/9.05/Resource/Font/TimesNewRomanPSMT.
Can't find (or can't open) font file TimesNewRomanPSMT.
Querying operating system for font files...
Loading TimesNewRomanPSMT font from /usr/share/fonts/corefonts/times.ttf... 3497392 2092081 7637808 6282514 3 done.
Substituting font Helvetica-Narrow-Bold for ArialNarrow,Bold.
Can't find (or can't open) font file /usr/share/ghostscript/9.05/Resource/Font/NimbusSanL-BoldCond.
Can't find (or can't open) font file NimbusSanL-BoldCond.
Can't find (or can't open) font file /usr/share/ghostscript/9.05/Resource/Font/NimbusSanL-BoldCond.
Can't find (or can't open) font file NimbusSanL-BoldCond.
Didn't find this font on the system!
Unable to substitute for font.
   **** Warning: can't process font stream, loading font by the name.
Substituting font Helvetica-Narrow-Bold for ArialNarrow,Bold.
Can't find (or can't open) font file /usr/share/ghostscript/9.05/Resource/Font/NimbusSanL-BoldCond.
Can't find (or can't open) font file NimbusSanL-BoldCond.
Can't find (or can't open) font file /usr/share/ghostscript/9.05/Resource/Font/NimbusSanL-BoldCond.
Can't find (or can't open) font file NimbusSanL-BoldCond.
Didn't find this font on the system!
Unable to substitute for font.
   **** Error reading a content stream. The page may be incomplete.
   **** File did not complete the page properly and may be damaged.
>>showpage, press <return> to continue<<


It can't find the font.

Code:
ls /usr/share/ghostscript/9.05/Resource/Font/
ls: cannot access /usr/share/ghostscript/9.05/Resource/Font/: No such file or directory

The directory it was looking in does not exist.

Code:
eselect fontconfig list
Available fontconfig .conf files (* is enabled):
  [1]   10-autohint.conf
  [2]   10-no-sub-pixel.conf
  [3]   10-scale-bitmap-fonts.conf
  [4]   10-sub-pixel-bgr.conf
  [5]   10-sub-pixel-rgb.conf
  [6]   10-sub-pixel-vbgr.conf
  [7]   10-sub-pixel-vrgb.conf
  [8]   10-unhinted.conf
  [9]   11-lcdfilter-default.conf
  [10]  11-lcdfilter-legacy.conf
  [11]  11-lcdfilter-light.conf
  [12]  20-unhint-small-dejavu-sans.conf
  [13]  20-unhint-small-dejavu-sans-mono.conf
  [14]  20-unhint-small-dejavu-serif.conf
  [15]  20-unhint-small-vera.conf
  [16]  25-unhint-nonlatin.conf
  [17]  30-metric-aliases.conf
  [18]  30-urw-aliases.conf
  [19]  40-nonlatin.conf
  [20]  42-luxi-mono.conf
  [21]  45-latin.conf
  [22]  49-sansserif.conf
  [23]  50-user.conf
  [24]  51-local.conf
  [25]  52-infinality.conf *
  [26]  57-dejavu-sans.conf
  [27]  57-dejavu-sans-mono.conf
  [28]  57-dejavu-serif.conf
  [29]  60-latin.conf
  [30]  60-liberation.conf
  [31]  62-croscore-arimo.conf
  [32]  62-croscore-cousine.conf
  [33]  62-croscore-symbolneu.conf
  [34]  62-croscore-tinos.conf
  [35]  65-fonts-persian.conf
  [36]  65-khmer.conf
  [37]  65-nonlatin.conf
  [38]  69-unifont.conf
  [39]  70-no-bitmaps.conf
  [40]  70-yes-bitmaps.conf
  [41]  80-delicious.conf
  [42]  90-synthetic.conf
  [43]  99pdftoopvp.conf
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Mon Jan 27, 2014 10:30 pm    Post subject: Reply with quote

doesn't exist here either:

Quote:
ls -l /usr/share/ghostscript/9.10/Resource/
CIDFont/ CMap/ Decoding/ IdiomSet/ SubstCID/
CIDFSubst/ ColorSpace/ Encoding/ Init/


try installing media-fonts/dejavu

and some other ArialNarrow font equivalents seem to be needed (opens fine here, I've quite a lot fonts in ~/.fonts/ so that's perhaps what is needed :? )
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
kaTiezei
n00b
n00b


Joined: 10 Mar 2013
Posts: 39

PostPosted: Fri Jan 31, 2014 7:08 pm    Post subject: Reply with quote

Thank you for looking at my problem.
I had already installed dejavu. Where did you get your ~/.fonts from? I don't have that.
Btw., if I disable Infinality and enable other fonts, the pdf print preview works.
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Fri Jan 31, 2014 9:24 pm    Post subject: Reply with quote

I had this problem too a couple of times.
rebuilding okular solved the problem for me.

EDIT : By the way you can test before if you get the same troubles when opening your pdfs under The_Gimp or Inkscape.
_________________
Back to top
View user's profile Send private message
kaTiezei
n00b
n00b


Joined: 10 Mar 2013
Posts: 39

PostPosted: Mon Feb 03, 2014 9:39 pm    Post subject: Reply with quote

Hello,

rebuilding doesn't help on my system. But I can view and print those documents in gimp!
Back to top
View user's profile Send private message
dev-zero
Developer
Developer


Joined: 07 Mar 2007
Posts: 6
Location: Zürich

PostPosted: Wed Mar 12, 2014 3:43 pm    Post subject: Reply with quote

I would guess, this is https://bugs.gentoo.org/show_bug.cgi?id=494764
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum