LoginSignup
4
4

More than 5 years have passed since last update.

カレントディレクトリのPDFをTIFFに変換する

Posted at

Linux上でghostscriptを使ってカレントディレクトリにある全てのPDFファイルをTIFFファイルに変換します。

#!/bin/bash

files="./*.pdf"
for filepath in ${files}
do
   pdfname=`basename ${filepath}`
   tifname=`echo ${pdfname} | sed "s/.pdf/.tif/"`
   gs -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -r400 -sOutputFile=${tifname} ${pdfname}
done

B4で1ページ1ファイルになっている地積測量図PDFを変換する為に書きました。
-sDEVICE=tiffg4-r400を指定すると不動産登記規則第73条第1項の規定により法務大臣が定める土地所在図等の作成方式に従ったファイルができてくるのでオンライン申請に使えそうです。

4
4
1

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
4
4