Bug 385456 - Okular do not print PDF containing vertical direction document.
Summary: Okular do not print PDF containing vertical direction document.
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: 1.2.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-07 05:14 UTC by bbdn777
Modified: 2018-03-16 08:15 UTC (History)
3 users (show)

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


Attachments
Can't print this PDF. (49.17 KB, application/pdf)
2017-10-15 00:45 UTC, bbdn777
Details
It is a log when printing. (982.36 KB, text/x-log)
2017-10-22 23:22 UTC, bbdn777
Details
screenshot (287.73 KB, image/png)
2018-02-26 01:13 UTC, bbdn777
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bbdn777 2017-10-07 05:14:30 UTC
Okular do not print PDF containing vertical direction document.
Can print horizontal only document.
Comment 1 Albert Astals Cid 2017-10-12 22:16:25 UTC
Please attach a document you're having trouble with
Comment 2 bbdn777 2017-10-15 00:45:16 UTC
Created attachment 108357 [details]
Can't print this PDF.
Comment 3 bbdn777 2017-10-15 00:55:39 UTC
It's delivery label of Japan Post.
Can print by Evince.
Comment 4 Christoph Feck 2017-10-18 10:31:03 UTC
Thanks for the update; changing status.
Comment 5 Albert Astals Cid 2017-10-22 17:24:50 UTC
The file prints fine here.

Can you please describe a bit better why do you mean by "Okular do not print PDF" ?
Comment 6 bbdn777 2017-10-22 23:22:11 UTC
Created attachment 108519 [details]
It is a log when printing.
Comment 7 Albert Astals Cid 2017-10-23 21:17:59 UTC
which poppler version are you using?
Comment 8 bbdn777 2017-10-24 00:24:36 UTC
poppler 0.60.1-1 is installed.
poppler-data is 0.4.8-1.
Distribution is Arch Linux.
Comment 9 Albert Astals Cid 2017-10-24 21:59:44 UTC
Does print preview work?
Comment 10 bbdn777 2017-10-25 02:08:27 UTC
It takes a very long time, and nothing is displayed.
Comment 11 Albert Astals Cid 2018-02-26 00:02:41 UTC
This is very confusing since i'm also on arch linux and it works for me.

Just checking you have libspectre installed, right?

also what's the output of locale on a terminal?
Comment 12 bbdn777 2018-02-26 01:13:31 UTC
Created attachment 111000 [details]
screenshot

Thank you for help.


output of terminal.
[user@archlinux ~]$ sudo pacman -Ss libspectre
[sudo] user のパスワード:
extra/libspectre 0.2.8-1 [インストール済み]
    Small library for rendering Postscript documents
community/zathura-ps 0.2.5-1
    Adds ps support to zathura by using the libspectre library
[user@archlinux ~]$ okular
kf5.kio.core: KSambaShare: Could not find smb.conf!
Settings::instance called after the first use - ignoring
rangecheck -15
rangecheck -15
org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [574x812]
QImage::scaled: Image is a null image
rangecheck -15
rangecheck -15
org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [554x783]
QImage::scaled: Image is a null image
rangecheck -15
rangecheck -15
org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [80x113]
QImage::scaled: Image is a null image
^C
[user@archlinux ~]$ locale
LANG=ja_JP.UTF-8
LC_CTYPE="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_PAPER="ja_JP.UTF-8"
LC_NAME="ja_JP.UTF-8"
LC_ADDRESS="ja_JP.UTF-8"
LC_TELEPHONE="ja_JP.UTF-8"
LC_MEASUREMENT="ja_JP.UTF-8"
LC_IDENTIFICATION="ja_JP.UTF-8"
LC_ALL=
[user@archlinux ~]$


One line is displayed immediately after startup and the rest are displayed at preview.
The preview is displayed after about 20 seconds, but it is blank.
Comment 13 Christoph Feck 2018-03-15 03:06:50 UTC
Does comment #12 provide the requested information? Please set the bug status or add a comment.
Comment 14 Albert Astals Cid 2018-03-15 23:43:22 UTC
I have the suspicion that the japanese locale breaks ghostscript as it did use to break with other non english locales, but i have yet to find time to reproduce this issue
Comment 15 Michael Weghorn 2018-03-16 08:15:18 UTC
I can reproduce this with the attached document on Debian unstable, without Japanese locale:

~~~
$ locale
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
~~~

When I start Okular from the command line, the following output appears when opening the print preview (The 'rangecheck -15' actually looks like it may be related to ghostscript.):

~~~~
org.kde.okular.ui: kdeprint: creating preview dialog
org.kde.okular.ui: querying trader for application/ps service
org.kde.okular.ui: Trying to create a part
org.kde.okular.ui: Did not find a config file, attempting to look for old config
org.kde.okular.ui: Migrated old okular config
Settings::instance called after the first use - ignoring
kf5.kxmlgui: Registering action  "go_first"  under new name  "first_page"
kf5.kxmlgui: Registering action  "go_last"  under new name  "last_page"
org.kde.okular.core: Metadata file is now: "/home/limux/.local/share/okular/docdata/98658189.okular_Lh4595.ps.xml"
org.kde.okular.core: "/usr/lib/x86_64-linux-gnu/qt5/plugins/okular/generators/okularGenerator_ghostview.so"
org.kde.okular.core: Output DPI: QSizeF(96.3319, 96.0946)
org.kde.okular.generators.spectre: Page count: 1
org.kde.okular.core: request observer=0x5612652d72a0 574x812@0
org.kde.okular.core: sending request observer=0x5612652d72a0 574x812@0 async == true isTile == false
org.kde.okular.generators.spectre: receiving PixmapRequest(#94637006877344, async, 574x812, page 0, prio 1)
org.kde.okular.core: request observer=0x5612652d72a0 574x812@0
org.kde.okular.core: request observer=0x5612652d72a0 574x812@0
org.kde.okular.core: request observer=0x561265276d30 80x113@0
org.kde.okular.core: request observer=0x5612652d72a0 554x783@0
org.kde.okular.core: request observer=0x5612652d72a0 554x783@0
org.kde.okular.core: request observer=0x5612652d72a0 554x783@0
rangecheck -15
rangecheck -15
org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [574x812]
QImage::scaled: Image is a null image
org.kde.okular.core: request observer=0x5612652d72a0 554x783@0
org.kde.okular.core: sending request observer=0x5612652d72a0 554x783@0 async == true isTile == false
org.kde.okular.generators.spectre: receiving PixmapRequest(#94637006877344, async, 554x783, page 0, prio 1)
rangecheck -15
rangecheck -15
org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [554x783]
QImage::scaled: Image is a null image
org.kde.okular.core: sending request observer=0x561265276d30 80x113@0 async == true isTile == false
org.kde.okular.generators.spectre: receiving PixmapRequest(#94637006482736, async, 80x113, page 0, prio 2)                                                                                                                                                                     
rangecheck -15                                                                                                                                                                                                                                                                 
rangecheck -15                                                                                                                                                                                                                                                                 
org.kde.okular.generators.spectre: Generated image does not match wanted size: [0x0] vs requested [80x113]                                                                                                                                                                     
QImage::scaled: Image is a null image
~~~

(Debian) versions of the packages:

* okular 4:17.12.2-2
* libpoppler73 0.62.0-2
* libspectre1 0.2.8-1
* ghostscript 9.22~dfsg-2