Bug 164822

Summary: Okular cannot display XPS files created by Windows XP
Product: [Applications] okular Reporter: David Dempster <david.linguist>
Component: XPS backendAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: XPS "print-out" of the kde.org home page (will not open in Okular)

Description David Dempster 2008-06-24 15:01:15 UTC
Version:            (using KDE 4.0.80)
Installed from:    Ubuntu Packages
OS:                Linux

Using the "Microsoft XPS Document Writer", which is a virtual printer on Windows XP, I can "print" any printable thing to an XPS file instead of to a printer.  On Linux I can do the same with PS and PDF.

Okular is not able to open the XPS files I generate from Windows XP.  I imagine it can't view any XPS files.  Blank pages are displayed.  There are no error messages.

Presumably the problem is in the XPS backend by Brad Hards and Jiri Klement.

I'll attach an XPS of the http://kde.org home page.
Comment 1 David Dempster 2008-06-24 15:03:06 UTC
Created attachment 25565 [details]
XPS "print-out" of the kde.org home page (will not open in Okular)
Comment 2 Brad Hards 2008-06-24 23:04:01 UTC
The XPS backend does work for some files, just has serious font problems.

Perhaps we should disable/remove it?
Comment 3 Pino Toscano 2008-06-27 03:00:07 UTC
SVN commit 824976 by pino:

Width and height of a page can be real values, not just integer.

BUG: 164822


 M  +4 -4      generator_xps.cpp  
 M  +2 -2      generator_xps.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=824976
Comment 4 Brad Hards 2008-06-27 12:30:28 UTC
Thanks Pino