Splitting Upwardly Is Slow For A Pdf File
Occasionally, I needed to extract simply about pages from a multi-page pdf document. Suppose y'all accept a 6-page pdf document named myoldfile.pdf. You desire to extract into a novel pdf file mynewfile.pdf containing exclusively pages 1 together with 2, 4 together with five from myoldfile.pdf.
I did just that using pdktk, a command-line tool.
If pdftk is non already installed, install it similar this on a Debian or Ubuntu-based computer.
$ sudo apt-get update $ sudo apt-get install pdftk
Then, to brand a novel pdf amongst simply pages 1, 2, 4, together with five from the onetime pdf, produce this:
$ pdftk myoldfile.pdf truthful cat 1 ii 4 five output mynewfile.pdf
Note that cat together with output are particular pdftk keywords. cat specifies the functioning to perform on the input file. output signals that what follows is the advert of the output pdf file.
You tin dismiss specify page ranges similar this:
$ pdftk myoldfile.pdf truthful cat 1-2 4-5 output mynewfile.pdf
pdftk has a few to a greater extent than tricks inwards its dorsum pocket. For example, y'all tin dismiss specify a burst functioning to separate each page inwards the input file into a form output file.
$ pdftk myoldfile.pdf flare-up
By default, the output files are named pg_0001.pdf, pg_0002.pdf, etc.
pdftk is also capable of merging multiple pdf files into 1 pdf.
$ pdftk pg_0001.pdf pg_0002.pdf pg_0004.pdf pg_0005.pdf output mynewfile.pdf
That would merge the files corresponding to the first, second, 4th together with 5th pages into a unmarried output pdf.
If y'all know of simply about other slow mode to separate upwardly pages from a pdf file, delight order us inwards a comment. Much appreciated.
0 Response to "Splitting Upwardly Is Slow For A Pdf File"
Post a Comment