Pdftk: Difference between revisions
No edit summary |
No edit summary |
||
| Line 49: | Line 49: | ||
</source> | </source> | ||
=== Order Numerically === | |||
This is really a feature of the <code>ls</code> command. If you have a series of files you wish to load in numeric order, but the numbering system is 'natural' instead of computer-friendly, then use the -v option to <code>ls</code>. I.e. you have 1.pdf, 2.pdf... 11.pdf, 12.pdf. | |||
<source lang="bash"> | |||
pdftk $(ls -v *.pdf) cat output my.combined.pdf | |||
</source> | |||
{{References}} | {{References}} | ||
[[Category:Tools]] | [[Category:Tools]] | ||