Чем открыть xps линукс

XPS viewer for linux? [closed]

Questions seeking product, service, or learning material recommendations are off-topic because they tend to become obsolete quickly. Instead, describe your situation and the specific problem you’re trying to solve. Here are a few suggestions on how to properly ask this type of question.

@C.W.HolemanII: no, actually its a software req — these used to be alright, but eventually we decided it was just another product req. The right way to ask these questions would be in the form of a solution to a problem. See well most of these for more details — its been discussed to death.

I’d like to add that – even if the question became «How can I view XPS files on Linux?» – we require a minimum amount of research effort. Even the Wikipedia page lists a couple of Linux programs, so unless there’s any problem someone’s facing with any of those tools, the question would be too basic.

@slhck: this was asked in 2010. (now there’s plenty, back in 2010, not really). I can see why you would want to close it anyway for consistency, just saying that back in 2010, this would’ve been a good question 🙂

I know… in 2010 everything was different around here (and of course also in the world of XPS viewers), it’s just that we need to find some sort of middle ground in these situations, which is a little hard.

4 Answers 4

The developers of Ghostscript, Artifex, have an XPS Viewer for Linux which presumably has the same requirements as Ghostscript. The download page for the whole suite is here. Also, here is a page from Microsoft that lists XPS related products.

Maybe that MS link used to be helpful, but now it goes to an FAQ page that only lists Windows software — not helpful at all for this question.

@JasonAntman: The Third-party support section of the Wikipedia article on XPS should provide a partial replacement for the former content of that MS page. Additional information can be found here.

I think you should get Okular, since it’s the best XPS viewer for Linux:

Okular is a universal document viewer based on KPDF for KDE 4. This means Okular works on multiple platforms, including but not limited to Linux, Windows, Mac OS X, *BSD, etc.

Okular combines the excellent functionalities of KPDF with the versatility of supporting different kind of documents, like PDF, Postscript, DjVu, CHM, XPS, ePub and others.

Источник

Читайте также:  Linux windows где быстрее

How to view an XPS file?

Some times I have to deal with XPS files (XPS is a Microsoft’s rival to Adobe’s PDF format, technically a zipped XAML (XML)). Can I view them in Ubuntu? Or, maybe, I could even produce them?

4 Answers 4

Okular, the KDE pdf viewer, supports XPS. The package name is okular I’m not aware of any GNOME/GTK+ viewers that support XPS, though according to this evince bug in upstream GNOME support has been added. It’s not working for me in Maverick.

Did you know, MS SampleXpsDocuments archive is a Win32 executable and weights 159 MiB? 🙂 I am going to check the answer (to know it Evince XPS support is really usable) as soon as I find a sane XPS file to try.

@Jakob evince upstream supports it, but the package in ubuntu does not currenty use it. It requires a package libgxps which was just included in 12.04 and to be enabled in evince package, which is underway — there is no guarantee though because we’re a bit late. See askubuntu.com/questions/112852/… and «XPS not supported»

To me, the most suitable solution on my 12.04 computer was to convert the XPS file to PDF on the command line through

and viewing the newly created file.pdf using whatever PDF viewer (acroread in my case).

This required installing the package libgxps-utils.

(Evince did not open the XPS file that I ran into, at least out of the box, but complained «File type Zip archive (application/zip) is not supported».)

Same here — error message was «Error creating XPS file: Invalid XPS File: fixedrepresentation not found»

Didn’t work for me: (xpstopdf:87500): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory. This indicates a bug in someone’s code. You must ensure an error is NULL before it’s set.

If you want to create XPS files, your best bet may be to try to build the GhostXPS component of GhostPDL (part of the Ghostscript suite); I don’t know if this has ever been pacakged for Ubuntu, and I don’t have first-hand experience with it.

Inkscape can both read and write .xaml files. I suppose it could even be used to convert, e.g., .pdf or .svg to .xaml. I don’t know, however, whether or not it can handle .xps files directly (perhaps not).

You must log in to answer this question.

Highly active question. Earn 10 reputation (not counting the association bonus) in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity.

Читайте также:  Astra linux ip адрес узнать

Источник

How to Edit XPS Files on Linux

The XML Paper Specification is a comparatively open page description language that resembles Postscript to some degree. It’s used somewhat often on various types of Microsoft devices, but you won’t see it very much on Unix systems.

Some Linux users turn to Google Drive and Google Docs to edit XPS files, which is a decent solution since it lets them work through their browser. This system is platform independent and should work with FreeBSD and other Unix implementations as well. There are two other methods that use native tools, however.

Method 1: Installing Master PDF Editor

While PDF is a more popular format, XPS enjoys at least some continued official support by Microsoft so you might need to edit on at some point. If you need to do so, then you can do so by holding down Ctrl, Alt and T to open a command prompt and then typing cd ~/Downloads to get to your downloads directory followed by wget http://get.code-industry.net/public/master-pdf-editor-4.2.12_i386.deb to download the package. While it used to be in the official Debian and Ubuntu software repositories, it’s since been removed. You could start a command prompt by searching for it on the Dash as well if you’re an Ubuntu user, or by starting it from the Applications menu in Debian and Mint.

Once you’ve downloaded the file you can use sudo dpkg -i master-pdf-editor-4.2.12_i386.deb to install it. Should dpkg throw some kind of weird error at you, then you can try sudo apt -f install to get around it. You may have to then run sudo dpkg -i master-pdf-editor-4.2.12_i386.deb a second time. Keep in mind that in doing so, you’ll need to have your administrator password handy. By the way, you’ll want to use wget http://get.code-industry.net/public/master-pdf-editor-4.2.12_qt5.amd64.deb followed by sudo dpkg -i master-pdf-editor-4.2.12_qt5.amd64.deb to install it if you’re running a 64-bit version of Linux. This should also work with Linux Mint, Bodhi and other variants that use this type of package manager. Again, you’re going to want to scan for malware as usual when installing either the 64 or 32-bit versions of this package, and you’ll probably have to satisfy dependencies because it uses the QT library. Kubuntu and other KDE-based distribution users should be fine, however. The same goes for early adopters using LXQT.

Читайте также:  Перезагрузить сеть linux centos

You may also elect to head to https://code-industry.net/free-pdf-editor/ in your normal Web browser. Scroll down to where it reads “Download Now Master PDF Editor for Linux” and click the headings, which should also offer .tar.gz platform independent packages that are useful for arch as well as .rpm packages for Red Hat, CentOS and Fedora users.

As soon as Master PDF Editor is installed, you can load it from the Unity Dash, the Whisker Menu, the LX Panel or whatever other application launch system your preferred desktop environment uses. The program can open XPS files and save from the File menu. You may also hold down Ctrl and O to open a file and use Ctrl and then S to save one. Naturally you can also hold down F10 in most cases to access this menu too.

Once you’ve edited and saved a document, you can still simply double-click on it in your file manager to load it in the regular Evince document viewer.

You can also start Evince from the Dash, Whisker Menu, LX Menu or even from the command line and then use the File menu to open an XPS file. If you use MuPDF, Okular or Harlequin as a viewer, then these programs will work fine too. Okular users should already have all of the dependencies for Master PDF Editor fulfilled as well.

Method 2: Simple Conversion Trick

That method involves by far the least amount of playing around, but if you don’t mind a bit more mousing then there is another way you can do this without needing to install additional software. Open your XPS file in the Evince document viewer if you have it, or one of the others if you’re on a QT or KDE based system. Once you’re there, select File and then Print or hold down the Ctrl key and push P.

This will pop up a dialog box that offers to let you print the file if you have a printer, or it will only list Print to File if not.

Select Print to File and then choose one of the three output formats. You can pick PDF, Postscript or SVG. Select one you can edit and then push the Print button. You can now open this file in whatever program you have that allows editing of a PDF, PS or SVG file. It’s not an ideal solution, but it should work for many users.

Источник

Оцените статью
Adblock
detector