Expand description
Shrink PDF files using Ghostscript.
This library provides a simple way to execute a Ghostscript command which tries to optimize the resolution of embedded images in order to reduce the file size.
Ghostscript need to be already installed on your system.
Functionsยง
- dry_
run_ command - Command to simulate
gs_command
. - gs_
command - Ghostscript command to shrink
inpath
and write tooutpath
. - pdf_
into_ subdir - Moves the file
inpath
into the subdirectorysubdir
. - pdf_
subdir - Returns the subdirectory
subdir
sibling ofinpath
. - pdf_
to_ cmp_ pdf Deprecated - Replaces a
.pdf
extension with.cmp.pdf
. - pdf_
with_ suffix - Replaces a
.pdf
extension with.<suffix>.pdf
.