Skip to content

Instantly share code, notes, and snippets.

@yakovsh
Created January 18, 2016 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yakovsh/4bf921465d89f9ce68eb to your computer and use it in GitHub Desktop.
Save yakovsh/4bf921465d89f9ce68eb to your computer and use it in GitHub Desktop.
Flattening Transparencies in PDF with Free Tools
#!/bin/bash
#
# This script flattens transparencies in PDF files. To use, run the following:
# 2007_11_09-flatten_pdf.sh [input.pdf] [output.pdf]
#
# You will need xpdf-tools and ps2pdf to be installed
#
pdftops -origpagesizes -level3 $1 temp.ps
ps2pdf -dPDFX temp.ps $2
rm temp.ps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment