Tags

, , , ,

This blog will function to help me remember things I learn so I can find them easily.

——————————————————————————————————

I have been trying to scan my notes and homework from classes, interesting material from books, and anything I can have digital to reduce clutter.  Today I copied some materials and made a pdf but the file size was unnecessarily too large.

Scanning:

I used xsane to scan my documents.  It works great with lots of scanners and is very customizable.

Modifying PDFs:

I hit up the internet and found a command for Linux to decrease file size/quality:

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

The option PDFSETTINGS is what I played with to get the smallest file with reasonable quality.  The lowest is “/screen”, next better is “/ebook”, and highest are “/printer” and “/prepass”.  (Source)

Split/Merge/etc:

The program I use for splitting and merging pdfs is pdftk.  It is a great program for lots of simple and complex tasks for pdfs. Great list of examples:

PDFTK Examples

Advertisements