setriran.blogg.se

Pdf shrink program
Pdf shrink program








  1. #Pdf shrink program how to
  2. #Pdf shrink program pdf

Hence, using this script can help you reduce the size and upload files.

#Pdf shrink program pdf

Most government or third party sites put restrictions on PDF file size uploads. I often use this tiny script to reduce the file size of a scanned PDF file that I need to email/upload or store it on my NAS server for future reference. ~/bin/shrinkpdf.sh input.pdf output.pdf 120Ĭomparing original vs compressed pdf file quality ~/bin/shrinkpdf.sh input.pdf output.pdf 100

pdf shrink program

Set up executable permissions using the chmod command:

#Pdf shrink program how to

Shrink " $IFILE" " $OFILE" " $res" || exit $?Ĭheck_smaller " $IFILE" " $OFILE" How to Reduce PDF File Size in Linux when using bash shellĭownload and install the script in your system. Usage "$0" exit 1 fi # Output filename defaults to "-" (stdout) unless given: if then OFILE= "$2" else OFILE= "-" fi # Output resolution defaults to 72 unless given: if then res= "$3" else res= "90" fi # Modified by Vivek Gite to suit my needs #Ĭheck_smaller ( ) IFILE= "$1" # Need an input file: if then IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES LOSS OF USE, DATA, OR PROFITS OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. Neither the name of the copyright holder nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. Simple and Secure Clean interface to help you import files with one click.

pdf shrink program

Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. The program is equipped with advanced technology to shrink the file size in highest level but still keep the quality of the document. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. #!/bin/sh # Licensed under the 3-clause BSD license: # Copyright (c) 2014-2019, Alfred Klomp # All rights reserved.










Pdf shrink program