7
I've been trying to solve the problem of converting an .oxps file to .pdf or other file format. Any solutions for Linux out there?
I've been searching around and cannot come up with much thus far.
Maybe even something to convert to xps first and then pdf?
I've tried ImageMagick's convert
and ghostscript
, but no luck. Maybe I'm doing something wrong?
Note: I'm using Gentoo and/or Ubuntu.
EDIT
The solution is covered in the answer from @ThatGuy. However, for some reason, mudraw
was not pulled in with mupdf-tools
on ubuntu (I am running a headless 12.04.5 LTS ubuntu).
However, the source is available from MuPDF's website. I built the source and was able to solve the problem.
Thanks, but no luck. Also, I'm not too familiar with Ubuntu, mainly Gentoo, mudraw was not pulled in when installing on Ubuntu...but was when I built it on Gentoo. However, no luck. – Mikolaj – 2015-03-06T19:16:37.533
1MuPDF is split into several packages on Debian-based distributions.
mudraw
is included in the mupdf-tools package. Could you elaborate on why it doesn't work? – ThatGuy – 2015-03-07T01:09:25.7671I am getting these messages:
error: cannot recognize version maker
,warning: trying to repair broken xref
,warning: lexical error (unexpected ')')
and a bunch more like that. – Mikolaj – 2015-03-07T01:28:59.5401
According to http://www.mupdf.com/docs/browse/source/pdf/pdf-xref.c, that should be
– ThatGuy – 2015-03-07T03:15:13.610version marker
. Anyway, maybe try explicitly specifying the output format, like so:mudraw -o mudraw_output_page_number_%d.png -r 300 -F png input.oxps
Also, which version of mudraw are you using (i.e., what is the output of
apt-cache policy mupdf-tools
)? – ThatGuy – 2015-03-07T03:19:18.373On Ubuntu, I have
0.9-2ubuntu1
, but like I said, no mudraw was pulled in with it so I was not able to test on ubuntu. On Gentoo I have1.1_p20121127
. – Mikolaj – 2015-03-07T18:49:52.123Ok. The version I used was old. I downloaded the source from mupdf.com and all is well. Thanks for your help. I accepted your answer.
– Mikolaj – 2015-03-07T19:11:28.4372
mudraw
was calledpdfdraw
in earlier versions of MuPDF (including 0.9-2ubuntu1). Ispdfdraw
installed on your system? If not, you can install it usingsudo apt-get install mupdf-tools
. Now, I've never usedpdfdraw
myself, but you might be able to usepdfdraw
instead ofmudraw
. – ThatGuy – 2015-03-07T19:21:30.873