← 返回命令列表

Linux command

zlib-flate 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Compress data

zlib-flate -compress < [input] > [output.zz]

Decompress data

zlib-flate -uncompress < [input.zz] > [output]

Compress with specific level (1=fastest, 9=best)

zlib-flate -compress=[9] < [input] > [output.zz]

Decompress a raw zlib stream from a PDF

zlib-flate -uncompress < [stream.bin] > [decoded.txt]

说明

zlib-flate performs raw zlib compression and decompression. It reads from standard input and writes to standard output, making it suitable for use in shell pipelines. The tool uses raw zlib compression format, which distinguishes it from utilities like gzip that add wrapper headers. Compression levels from 1 (fastest) to 9 (best compression) can be specified with the -compress= option. zlib-flate is included as a utility in the QPDF package. It is primarily provided as a debugging tool for working with raw zlib streams such as those found inside PDF files. It should not be used as a general purpose compression tool; use gzip instead for that.

参数

-compress
Compress data.
-uncompress
Decompress data.
=_LEVEL_
Compression level (1-9).

FAQ

What is the zlib-flate command used for?

zlib-flate performs raw zlib compression and decompression. It reads from standard input and writes to standard output, making it suitable for use in shell pipelines. The tool uses raw zlib compression format, which distinguishes it from utilities like gzip that add wrapper headers. Compression levels from 1 (fastest) to 9 (best compression) can be specified with the -compress= option. zlib-flate is included as a utility in the QPDF package. It is primarily provided as a debugging tool for working with raw zlib streams such as those found inside PDF files. It should not be used as a general purpose compression tool; use gzip instead for that.

How do I run a basic zlib-flate example?

Run `zlib-flate -compress < [input] > [output.zz]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -compress do in zlib-flate?

Compress data.