gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite \ -dSubsetFonts=false -dEmbedAllFonts=true \ -sOutputFile=repacked.pdf input.pdf