Re: .xps files on SL5

2011-09-17 Thread Yasha Karant
You are correct -- the application built and seems to run using the 
files contained in the zip file when unzipped (using linux unzip) into 
the same directory from which one is building mupdf.  I have not yet 
tested it with xps files but with PDF files.


Should the built/made application be packaged as an installable RPM (and 
source RPM using the sources supplied) for convenience of other users?


Yasha Karant

On 09/17/2011 10:32 AM, Stephen Isard wrote:

On Fri, 16 Sep 2011 14:54:25 -0700, Yasha Karantykar...@csusb.edu  wrote:


I tried the binary executables of mudpf for linux on 5.7, but the glibc
is not compatible.


Yes, I found that too.


I then tried to make from source:

[ykarant@localhost mupdf-0.9] make
 MKDIR build/debug

(snip)

 CC build/debug/dev_text.o
fitz/dev_text.c:8:10: error: #include expects FILENAME orFILENAME
fitz/dev_text.c: In function ‘fz_text_extract_span’:
fitz/dev_text.c:324: warning: implicit declaration of function
‘FT_Get_Advance’
make: *** [build/debug/dev_text.o] Error 1

Also, no go.  What did you do differently?


You don't mention getting the third party libraries at
http://www.mupdf.com/download/mupdf-thirdparty.zip as instructed in the
README.  I did and unzipped them in the mupdf-0.9 directory.  Apart from
that, I just did make the way you did.

Stephen Isard


Re: .xps files on SL5

2011-09-16 Thread Dr Andrew C Aitchison

On Thu, 15 Sep 2011, Stephen Isard wrote:

Can anyone suggest a way to read Microsoft's XML Paper Specification (.xps) 
files on SL5?  I've found web postings saying that okular can read them, but 
I can't find a version of that for SL5.  I tried installing kdegraphics, but 
it wasn't included.  It's apparently on the way for evince, but not here yet.


mupdf http://mupdf.com/ works on SL6
but I haven't tried building it on SL5.

Before I found that, I found that the .xps documents I was interested
in were in fact .zip files containing PNG and JPG files with
the images that I wanted - the XML was just adding titles etc.

--
Dr. Andrew C. Aitchison Computer Officer, DPMMS, Cambridge
a.c.aitchi...@dpmms.cam.ac.uk   http://www.dpmms.cam.ac.uk/~werdna


Re: .xps files on SL5

2011-09-16 Thread Stephen Isard
On Fri, 16 Sep 2011 08:08:21 +0100, Dr Andrew C Aitchison
a.c.aitchi...@dpmms.cam.ac.uk wrote:

On Thu, 15 Sep 2011, Stephen Isard wrote:

 Can anyone suggest a way to read Microsoft's XML Paper Specification (.xps)
 files on SL5? 
...
mupdf http://mupdf.com/ works on SL6
but I haven't tried building it on SL5.

Thanks for the pointer.  It does build and work on SL5.5 too.  Better than 
gxps for displaying a .xps file on the screen without needing to convert it
to pdf first.  But if you do want to convert the file to pdf, or print it,
it's not immediately obvious whether mupdf can do that.  Maybe I just
haven't looked hard enough.

Stephen Isard


.xps files on SL5

2011-09-15 Thread Stephen Isard
Can anyone suggest a way to read Microsoft's XML Paper Specification 
(.xps) files on SL5?  I've found web postings saying that okular can 
read them, but I can't find a version of that for SL5.  I tried 
installing kdegraphics, but it wasn't included.  It's apparently on the 
way for evince, but not here yet.


Thanks,

Stephen Isard


Re: .xps files on SL5

2011-09-15 Thread Christopher Tooley
Apologies for the double post, forgot to post to the listserv (maybe other 
people can get some info out of this too):

You might try using kpdf... apparently okular is based upon that.
That's located in the kdegraphics package.  However, it looks like okular is 
specifically the one that reads xps.

There is also ghostxps which can apparently convert from xps to pdf format. 
(you'll probably have to compile that, but it's easy!)
http://www.ghostscript.com/download/

Christopher Tooley

On 2011-09-15, at 8:52 AM, Stephen Isard wrote:

 Can anyone suggest a way to read Microsoft's XML Paper Specification 
 (.xps) files on SL5?  I've found web postings saying that okular can 
 read them, but I can't find a version of that for SL5.  I tried 
 installing kdegraphics, but it wasn't included.  It's apparently on the 
 way for evince, but not here yet.
 
 Thanks,
 
 Stephen Isard


Re: .xps files on SL5

2011-09-15 Thread Stephen Isard

On Thu, 15 Sep 2011, Christopher Tooley wrote:

Thanks very much, Christopher.  Ghostxps did the job for me.

You might try using kpdf... apparently okular is based upon that. 
That's located in the kdegraphics package.  However, it looks like 
okular is specifically the one that reads xps.


I had tried kpdf, but without success.

There is also ghostxps which can apparently convert from xps to pdf 
format. (you'll probably have to compile that, but it's easy!) 
http://www.ghostscript.com/download/


Easy, but not quick :-)

The documentation for gxps is a bit thin, so I'll include a couple of 
things I learned in hopes of saving time for the next person who goes 
through this.


You can speed up compilation of gxps by doing 'make xps' instead of 
'make', assuming you don't want to compile the pcl interpreter as well.


gxps -h gives you commandline options.  Use
gxps -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=pdf file xps file
to convert xps file to pdf file.  If you leave out -dNOPAUSE, you 
are prompted to press ENTER for each separate page of the document.


When I ran just
gxps xps file
the file was displayed on the screen, but there were no controls for 
moving back and forth among pages, and the text was in a barely readable 
font.  There was a warning on the command line Some glyphs of the font 
TimesNewRomanPSMT requires a patented True Type interpreter.  There was 
no such warning when I converted to pdf and the text looked much better.


Stephen Isard


On 2011-09-15, at 8:52 AM, Stephen Isard wrote:


Can anyone suggest a way to read Microsoft's XML Paper Specification
(.xps) files on SL5?  I've found web postings saying that okular can
read them, but I can't find a version of that for SL5.  I tried
installing kdegraphics, but it wasn't included.  It's apparently on the
way for evince, but not here yet.

Thanks,

Stephen Isard


Re: .xps files on SL5

2011-09-15 Thread Chris Pemberton

On 09/15/2011 01:33 PM, Stephen Isard wrote:

On Thu, 15 Sep 2011, Christopher Tooley wrote:

Thanks very much, Christopher.  Ghostxps did the job for me.
Sounds like you've found a free solution.  I tried evince 3.0.2 compiled 
with libgxps (latest git) and it would open xps documents but the pages 
were blank.  Tried this commercial app and it seemed to work great:


http://www.sana-tech.com/xps.html