Bug 265891 - Printing of XPS very bad font sizes
Summary: Printing of XPS very bad font sizes
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: XPS backend (show other bugs)
Version: 0.19.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-09 16:43 UTC by mdhirsch
Modified: 2023-09-03 06:13 UTC (History)
3 users (show)

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


Attachments
This is the xps file I couldn't print well (678.58 KB, application/oxps)
2011-02-09 16:43 UTC, mdhirsch
Details
Another file that prints badly (234.53 KB, application/vnd.ms-xpsdocument)
2011-08-24 14:53 UTC, mdhirsch
Details
print preview of attach 63113 (159.76 KB, image/png)
2023-09-03 06:07 UTC, p92
Details
original vs print preview (745.64 KB, image/png)
2023-09-03 06:13 UTC, p92
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mdhirsch 2011-02-09 16:43:42 UTC
Created attachment 57026 [details]
This is the xps file I couldn't print well

Version:           0.11.2 (using KDE 4.5.5) 
OS:                Linux

Okular does a great job of displaying the attached xps file.  It looks perfect.  But when I print it it is unreadable.  The problem appears to be that completely wrong font sizes are used.  Headlines are twice as big as they should be, so the letter overlap each other, and adjacent text.

This seems to be a big machine dependent.  On one system things seems to be off by a factor of two or more, but on another one they are off by only 50% or so.  Both systems are running Kubuntu 10.10 with the latest KDE from the PPA repository.


Reproducible: Always

Steps to Reproduce:
I've attached the xps file I was using.  It is 4 pages with some mixture of text and images.

I discovered this by printing, but then found that the problem was easily seen in print preview.  When I print preview this on two different Kubuntu systems the layouts are clearly wrong.  The fonts are two big and don't fit into the space they are using.

Actual Results:  
The screen view, and print preview are very different.  The layout is essentially the same, but the font sizing is so wrong that the results are not usable.

Expected Results:  
The screen view and the print preview should look the same.

OS: Linux (x86_64) release 2.6.35-25-generic
Compiler: cc
Comment 1 Pino Toscano 2011-02-09 17:57:48 UTC
Are the two systems using two different printers?
Comment 2 mdhirsch 2011-02-09 20:08:51 UTC
Yes, the printers are different, but the difference is visible in the "Print Preview" without ever going to the printer.  My understanding means that the actual printer in use should be irrelevant, since print preview doesn't ask what printer you are using.
Comment 3 p92 2011-02-09 23:52:51 UTC
I can confirm this too !

Try XPS files from the following site for example http://www.wssdemo.com/Pages/xps.aspx 

For some XPS even the screen display is bad.
Comment 4 Albert Astals Cid 2011-02-10 00:16:37 UTC
#3 Are you aware that you are complaining about something totally different? Please do not hijack other people bugs.
Comment 5 p92 2011-02-10 08:58:56 UTC
I totally disagree Albert, I am reporting exact same bug as comment #1. Relatively good display of XPS, but font size totally wrong upon printing. Print preview shows bad font size too.

I was just adding some other xps source files to improve debugging.

Btw I am using KDE 4.6.0 on kubuntu 10.10 with okular 0.12
from the backport PPA
ii  okular   4:4.6.0-0ubuntu1~maverick1~ppa1  universal document viewer
Comment 6 Albert Astals Cid 2011-02-10 10:12:03 UTC
#5 Ok, I misunderstood your comment then, it seemed to me that you said they looked wrong in the viewer, not only when printing or print previewing them. Sorry about the misunderstanding
Comment 7 Sergey 2011-08-20 12:39:47 UTC
The bug is still reproducible and annoying. I can see XPS normally but font size is too large when printing. 

My Okular version is 0.12.5 (KDE 4.6.5)
Comment 8 mdhirsch 2011-08-24 14:53:14 UTC
Created attachment 63113 [details]
Another file that prints badly
Comment 9 mdhirsch 2011-08-24 14:54:14 UTC
I just attached another file that exhibits this.  Actually, I have yet to see an XPS file that doesn't have this problem.  Maybe there are some, but I haven't seen them.
Comment 10 Justin Zobel 2021-03-09 23:59:33 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 11 p92 2023-09-03 06:05:42 UTC
Hello
this bug is still current. print preview of attachement 63113 is still bad (see screen shot in my attachement).

Operating System: Kubuntu 23.04
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.0-1010-lowlatency (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-7700T CPU @ 2.90GHz
Memory: 30.9 Gio of RAM
Graphics Processor: Mesa Intel® HD Graphics 630

$ dpkg -l okular
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-dé>
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom            Version            Architecture Description
+++-==============-==================-============-=================================
ii  okular         4:22.12.3-0ubuntu1 amd64        universal document viewer
Comment 12 p92 2023-09-03 06:07:01 UTC
Created attachment 161353 [details]
print preview of attach 63113
Comment 13 p92 2023-09-03 06:13:44 UTC
Created attachment 161354 [details]
original vs print preview

same for the first xps attachement given to this report
here you can compare original display in okular vs print preview which prints incorrectly