Skip to content

Instantly share code, notes, and snippets.

@SungYeolWoo
Created July 7, 2017 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SungYeolWoo/ccf59f03e0ec27e59a38cd6deb18b6a7 to your computer and use it in GitHub Desktop.
Save SungYeolWoo/ccf59f03e0ec27e59a38cd6deb18b6a7 to your computer and use it in GitHub Desktop.
SlideShare에 PDF를 업로드했는데 Font가 깨질경우 폰트 복구 스크립트(출처: https://item4.github.io/2016-10-31/Way-to-Use-Homeland-Fonts-on-SlideShare/)
#!/bin/bash
# example
# $ usingKoreanFontFromSlideShare.sh /path/to/pdf
FILE="$1"
export LANG=C
export LC_ALL=C
sub() {
sed -i '' s'|/Registry (Adobe) /Ordering (Korea1) /Supplement [0-9]|/Registry(Adobe) /Ordering(Identity) /Supplement 0|g' "$1"
}
sub "$FILE"
echo "Completed substitution of $FILE"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment