Bug 701449 - mutool clean does not decompress stream
Summary: mutool clean does not decompress stream
Status: RESOLVED WORKSFORME
Alias: None
Product: MuPDF
Classification: Unclassified
Component: apps (show other bugs)
Version: 1.16.1
Hardware: PC Linux
: P4 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-20 14:20 UTC by pulsarpietro
Modified: 2019-08-20 14:52 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
PDF to decompress (703.81 KB, application/pdf)
2019-08-20 14:20 UTC, pulsarpietro
Details
mutool clean output (4.65 MB, text/x-objcsrc)
2019-08-20 14:25 UTC, pulsarpietro
Details
qpdf outout (266.38 KB, application/pdf)
2019-08-20 14:25 UTC, pulsarpietro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pulsarpietro 2019-08-20 14:20:29 UTC
Created attachment 18021 [details]
PDF to decompress

Hi all,

Forgive me if I've made a mistake in the process, but it seems that mutool clean does not decompress streams the way it is intended.
Comment 1 pulsarpietro 2019-08-20 14:24:42 UTC
Disregard my previous comment.


Hi all,

Forgive me if I've made a mistake in the process, mutool clean seems not to decompress streams as intended. 

mutool clean -d test.pdf out.pdf.m

Result in the attached file, whereas the file is correctly decompressed (decoded ?) using qpdf.

qpdf -stream-data=uncompress test.pdf out.pdf.q

Therefore the PDF itself seems to be OK.
Comment 2 pulsarpietro 2019-08-20 14:25:14 UTC
Created attachment 18022 [details]
mutool clean output
Comment 3 pulsarpietro 2019-08-20 14:25:39 UTC
Created attachment 18023 [details]
qpdf outout
Comment 4 Tor Andersson 2019-08-20 14:52:53 UTC
The file is decompressed, but you also need to decrypt it in order to have human readable output.

Add the -D option to mutool clean.