Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.