Last active
October 5, 2022 17:20
-
-
Save MBtech/efb34ecfb2d42656a012548f5cbb017e to your computer and use it in GitHub Desktop.
Latex Embedded all fonts used in .pdf figures (test it on copy of your figures first to make sure they look fine after conversion)
This file contains 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 | |
cd $1 | |
for file in $(ls *.pdf | cut -d "." -f 1); | |
do | |
echo $file | |
pdf2ps $file.pdf $file.ps | |
ps2pdf -dSAFER -dNOPLATFONTS -sPAPERSIZE=letter -dEmbedAllFonts=true -dPDFSETTINGS=/prepress $file.ps $file.pdf | |
rm $file.ps | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment