Sometimes its useful to have a quick way to compress PDF files. I have found imagemagick contains a great command line tool 'convert'.
Background on imagemagick
- Number of CLI tools to create and edit bitmap images
- Can read, convert and write images in many formats
- Supports common formats e.g. PDF, JPEG, GIF and PNG
Convert CLI tool
- Convert's between image formats
- Blur images
- Crop images
- Draw on images
- Flip images
- Also can resize an image among many other tasks
- Install on Ubuntu or Linux Mint
Example
- The following will compress the input.pds to output.pdf
Further Information
- Imagemagick project page
- Command line
No comments:
Post a Comment