5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

MikatusAdvent Calendar 2020

Day 7

Swftools(pdf2pwf)のMacへのインストール

Last updated at Posted at 2020-12-06

Swftoolsのインストール方法 for Mac

pdfをswfに変換する必要があったのでオープンソースの変換ツールを入れた時のメモ書きを投稿します。

gitからソースを取得

https://github.com/matthiaskramm/swftools
から取得


git clone git://github.com/matthiaskramm/swftools swftools

足りないライブラリをインストール


brew install freetype
brew install giflib

ビルドとインストール


./configure
make
make install

make時のエラーが出るので


xpdf/GlobalParams.cc:925:12: error: ordered comparison between pointer and zero ('char *' and 'int')
    if(pos1>=0)
       ~~~~^ ~
xpdf/GlobalParams.cc:927:17: error: ordered comparison between pointer and zero ('char *' and 'int')
    else if(pos2>=0)
            ~~~~^ ~
2 errors generated.

ソースの修正

GlobalParams.ccのソースを!= NULLに修正


make clean
make
make install

インストールできたか実際に変換してみる

pdfをswfに変換


pdf2swf infile.pdf -o outfile.swf

完了です。

5
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?