support opening compressed ps files

Bug #1687302 reported by Andrey Grozin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qpdfview
Fix Released
Wishlist
Adam Reichold

Bug Description

I can say

gv foo.ps.gz

and view foo. Unfortunately, I cannot say

qpdfview foo.ps.gz

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
Revision history for this message
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)
Revision history for this message
Andrey Grozin (a-g-grozin) wrote :

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

Revision history for this message
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...

Revision history for this message
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
Changed in qpdfview:
status: Fix Committed → Fix Released
Revision history for this message
Philipp Ludwig (philipp.ludwig) wrote :

Sadly this is no longer working; trying to open a gzipped PDF now only yields:

Unknown MIME type: "application/octet-stream"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.