Jump to navigation
Jump to search
Contents
pdftk
If PDF is electronic paper, then pdftk is an electronic staple-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a simple tool for doing every- day things with PDF documents. Use it to: * Merge PDF Documents or Collate PDF Page Scans * Split PDF Pages into a New Document * Rotate PDF Documents or Pages * Decrypt Input as Necessary (Password Required) * Encrypt Output as Desired * Fill PDF Forms with X/FDF Data and/or Flatten Forms * Generate FDF Data Stencils from PDF Forms * Apply a Background Watermark or a Foreground Stamp * Report PDF Metrics such as Metadata and Bookmarks * Update PDF Metadata * Attach Files to PDF Pages or the PDF Document * Unpack PDF Attachments * Burst a PDF Document into Single Pages * Uncompress and Re-Compress Page Streams * Repair Corrupted PDF (Where Possible)
Ghostscript
Simple combine documents
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=________.pdf <file list>
crop without rasterize
gs -o age_signal.pdf -sDEVICE=pdfwrite -g10000x12000 -c "<</PageOffset [-1000 -1000]>> setpagedevice" -f Kimmel_J.pdf
- Page offset[ horizontal vertical ]
- -g<width>x<height>
downsample
gs -o out.pdf -sDEVICE=pdfwrite -dDownsampleColorImages=true -dDownsampleGrayImages=true -dDownsampleMonoImages=true -dColorImageResolution=300 -dGrayImageResolution=300 -dMonoImageResolution=300 in.pdf