2

PDFページ2にテキストを追加しようとしていました

コマンドによって

convert -density 300 input.pdf -pointsize 80 -draw "text 400,550 'HeLLO'"  out.pdf

1ページにテキストを追加できます。

だが

convert -density 300 input.pdf -pointsize 80 -draw "text 400,550 'HeLLO'"  out.pdf

2ページでは動作しません。

分割してテキストを1つずつ追加しようとしましたが、遅すぎます。1つのコマンドで1ページと2ページの両方に直接テキストを描画する方法はありますか?

ありがとう!

4

1 に答える 1

2

試す:

convert -density 300 input.pdf[1] -pointsize 80 -draw "text 400,550 'HeLLO'"  out.pdf

これについて考えると、PDF全体ではなく2ページのみが出力されますか?

この投稿https://stackoverflow.com/questions/10429311/creating-thumbnail-image-from-the-first-page-of-pdfを見ると、次のことができるはずです。

 convert -density 300 input.pdf[0-1] -pointsize 80 -draw "text 400,550 'HeLLO'"  out.pdf
于 2012-05-02T11:48:53.720 に答える