1
3

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 5 years have passed since last update.

TeXを利用してpdfを結合する

Last updated at Posted at 2018-01-14

TeXを持っているのに、なぜPDFの結合に別のプログラムを導入しなければならないのか?

基本的にはここを読んだ結果をメモしているだけです。

必要条件

  1. TeXがインストールされていること
  2. TeXにpdfpagesパッケージがインストールされていること(Mac用のTeX Liveにはデフォルトでバンドルされているっぽい)

使用法

pdfjamなるコマンドが使えます。
というかコマンドの使い方そのものです。

pdfjam input1.pdf input2.pdf input3.pdf -o output.pdf

(2018.2.14追記) 元となるファイルとしては、PDFファイルのほかにもPNGやJPEG形式のファイルも受け付けます。というわけで、スキャンしてつくったJPEGファイルを結合するのにも使えます。

その他

GhostScriptにはpdftkなるコマンドがあるようですが、個人的にコマンドの書き方が恐くて使っていません。詳しくは最初に挙げたページを参照してください。

1
3
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
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?