support opening compressed ps files

Bug #1687302 reported by Andrey Grozin on 2017-04-30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Adam Reichold

Bug Description

I can say


and view foo. Unfortunately, I cannot say


It would be useful to support .gz (maybe also .bz2, .xz ...).
This is important foe .ps (and .eps) files which are usually kept compressed; not really important for .pdf and .djvu

description: updated
Adam Reichold (adamreichold) wrote :

Hello Andrey,

thank you for taking the time to report this. Could you please the linked branch a try? It extends the current trunk by automatically decompressing compressed (GZip, BZip2 and XZ if the corresponding compression programs are installed and in the path) files to temporary files before opening them. This avoids having to reimplement transparent decompression and having to link against the related libraries keeping this a soft dependency and changing very little code.

Best regards, Adam.

Changed in qpdfview:
status: New → In Progress
importance: Undecided → Wishlist
assignee: nobody → Adam Reichold (adamreichold)
Andrey Grozin (a-g-grozin) wrote :

Works like a charm, many thanks! (I've built it with Qt5, haven't tried Qt4)

Adam Reichold (adamreichold) wrote :

Hhhmmm, and now I have to decide whether to skip 0.4.17 since I will never get it out of the door anyway and continue with merging new functionality for what will hopefully become 0.4.18...

Andrey Grozin (a-g-grozin) wrote :

Some time ago I've switched from kde to a simpler desktop, namely lumina (it uses Qt5). So, I now use qpdfview as my main viewer for pdf, djvu (and now ps.gz) instead of okular. Works nicely. If I could find some good viewer of dvi (xdvi is too awful), then I'd have no need in okular...

Changed in qpdfview:
milestone: none → 0.4.18
Changed in qpdfview:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers