Bug 402945 - PDF: empty print preview and no printing possible
Summary: PDF: empty print preview and no printing possible
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: 1.5.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-06 22:12 UTC by moritzhagedorn
Modified: 2019-01-06 23:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
sample file (129.77 KB, application/pdf)
2019-01-06 22:12 UTC, moritzhagedorn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description moritzhagedorn 2019-01-06 22:12:43 UTC
Created attachment 117311 [details]
sample file

SUMMARY
Unable to print, empty print preview, empty pdf export via 'print'

The files showing this bug were created with TCPDF 6.2.12.

Opening the print preview stdout showed:
"""
DEBUG: FC_WEIGHT didn't match
rangecheck -15
rangecheck -15
org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [804x1137]
QImage::scaled: Image is a null image
"""
 

STEPS TO REPRODUCE
1. open document with okular.
2a. open print preview
2b. print file directly

OBSERVED RESULT
a. The print preview shows a blank page
b. no file is being sent to the printer/ pdf export (unless rasterization is enforced)

EXPECTED RESULT
a. The print preview looks just like the file is shown in okular
b. a print

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 29
(available in About System)
KDE Plasma Version: 5.14.4
KDE Frameworks Version: 5.53.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION
Found some very old bugreports with no print results. As I was not sure if they are related and were not resolved, I created this one. Please move this if redundant.
Comment 1 Albert Astals Cid 2019-01-06 23:19:34 UTC
It's a poppler bug.

Please file a bug at https://gitlab.freedesktop.org/poppler/poppler/

Reasoning, pdftops + gs has this very same problem.

As workaround you can print by using the rasterize option.