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
inpathand write tooutpath. - pdf_
into_ subdir - Moves the file
inpathinto the subdirectorysubdir. - pdf_
subdir - Returns the subdirectory
subdirsibling ofinpath. - pdf_
to_ cmp_ pdf Deprecated - Replaces a
.pdfextension with.cmp.pdf. - pdf_
with_ suffix - Replaces a
.pdfextension with.<suffix>.pdf.