Skip to content

Instantly share code, notes, and snippets.

@KenshoFujisaki
Created May 20, 2020 02:11
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 KenshoFujisaki/25121d5c4b750209e2408fcf05229318 to your computer and use it in GitHub Desktop.
Save KenshoFujisaki/25121d5c4b750209e2408fcf05229318 to your computer and use it in GitHub Desktop.
PDF形式からSVG形式にベクタ変換
# pdf2svgをインストール
brew install pdf2svg
# なお、brewコマンドが見つからない(Homebrew未インストール)の場合は下記実行してインストールする。ref: https://brew.sh/index_ja
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# pdfファイルをsvgファイルに変換
# 例)input.pdfファイルをoutput.svgに変換出力する場合
pdf2svg input.pdf output.svg
@KenshoFujisaki
Copy link
Author

PowerPointで図形を作成して、これをベクタ形式でWebページに埋め込みたいときに便利です。

  1. PowerPointで図を作成
  2. 図を選択してPDF形式で出力
  3. 本gist(pdf2svgコマンド)でPDF→SVG変換
  4. HTMLに埋め込む

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment