#!/bin/bash

INFILE=$1
OUTFILE="${INFILE%.*}_embedded.pdf"

gs -dNOPAUSE -dBATCH -dEmbedAllFonts=true -sDEVICE=pdfwrite -o ${OUTFILE} -c ".setpdfwrite <</NeverEmbed [ ]>> setdistillerparams" -f $INFILE

#!/bin/bash

INFILE=$1
OUTFILE="${INFILE%.*}_embedded.pdf"

gs -dNOPAUSE -dBATCH -dAutoRotatePages=/None -dEmbedAllFonts=true -sDEVICE=pdfwrite -o ${OUTFILE} -c ".setpdfwrite <</NeverEmbed [ ]>> setdistillerparams" -f $INFILE

Stop it from auto-rotating my pages.
Stop it from auto-rotating my pages.
