Bug 337527

Summary: okular does not print pdf which uses specific embedded font
Product: [Applications] okular Reporter: dmatt <xdarkmatter>
Component: printingAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: aacid
Priority: NOR    
Version: 0.19.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: example file with preview and print failing

Description dmatt 2014-07-17 07:10:31 UTC
Using Kubuntu 14.04.
Ocular opens and shows correctly pdf document (created via TCPDF 6.0.010 in format PDF v. 1.7 as shown in properties) which uses subset embedded CID True Type Klavika font. It generates empty preview of such document with only okular logo inside. Attempt to print outputs empty page. The same document is previewed and printed OK from Evince. This font is also installed on system, but printing fails regardless if it is installed.
If the document is generated using some of the other fonts installed as default in system, Okular previews and prints it correctly.

When started from command line, okular outputs:

Bus::open: Can not get ibus-daemon's address. 
IBusInputContext::createInputContext: no connection to ibus-daemon 
This backend is only for XRandR 1.1, your version is:  1 . 4

attempt to preview produces following messages:
rangecheck -15
rangecheck -15
okular(9631)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [88x124]
QImage::scaled: Image is a null image
rangecheck -15
rangecheck -15
okular(9631)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [555x785]
QImage::scaled: Image is a null image
rangecheck -15
rangecheck -15
okular(9631)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [555x785]
QImage::scaled: Image is a null image
rangecheck -15
rangecheck -15
okular(9631)/okular (Spectre) GSRendererThread::run: Generated image does not match wanted size: [0x0] vs requested [78x110]
QImage::scaled: Image is a null image

Attempt to print does not produce any message.
Comment 1 Albert Astals Cid 2014-07-17 20:54:53 UTC
Can you pleasse attach the file?
Comment 2 dmatt 2014-07-22 10:35:32 UTC
Created attachment 87872 [details]
example file with preview and print failing

I am adding example as requested.
Comment 3 Albert Astals Cid 2014-07-22 23:31:26 UTC
This is a bug with the library we use for generating ps files from pdf (amongst other things) called poppler.

You can see by doing this
pdftops file.pdf
gs file.ps

You will get an error when usually you'd get the rendering of the ps file. Please go to https://bugs.freedesktop.org and report a bug about it.

Thanks for caring about Okular.