Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get pdftk to burst to source file name plus page number?

Tags:

pdftk

How can I use pdftk to burst to the same filename as the source file plus a number?

Sample input

source.pdf

Desired output

source-1.pdf (it is ok if page number has leading zeroes, but not required)
source-2.pdf

Maybe I could use a .bat file to substitute the source filename? I have no idea how to do this. Any help at all is appreciated.

like image 407
Maa421s Avatar asked Oct 17 '25 01:10

Maa421s


1 Answers

This can be done like the following:

pdftk source.pdf burst output source-%d.pdf


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!