Bug 701449

Summary: mutool clean does not decompress stream
Product: MuPDF Reporter: pulsarpietro <pietro.paolini>
Component: appsAssignee: MuPDF bugs <mupdf-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P4    
Version: 1.16.1   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: PDF to decompress
mutool clean output
qpdf outout

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.