Created
January 18, 2016 01:43
-
-
Save yakovsh/4bf921465d89f9ce68eb to your computer and use it in GitHub Desktop.
Flattening Transparencies in PDF with Free Tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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