When you need to VeryPDF PDF Toolbox. If there are some oblique pages when merging, by this software you can also rotate pages in some degree. Meanwhile, there are three versions of this software: Mac, Linux and Windows, so you can use it under any one of the above platforms. In the following part, I will show you how to delete unwanted pages from PDF by PDF Toolbox.from PDF and then insert some new pages to this PDF by command line for developing, maybe you can have a free trial of software
Step 1. Download PDF Toolbox
- Once downloading finishes, there will be a zip file in downloading folder. Please extract it to some folder then check elements in it. When extract it to some folder, there will be three subfolders in it: doc, bin and test folder. In the text folder, there are many bat file named by corresponding parameter is it. Simply run it then you can check working effect. In doc folder, you can find the help document. In bin folder, you can find executable file.
- Here I use the Windows version, which can work in all the Windows platforms both of 32-bit and 64-bit.
Step 2. Delete pages from PDF and deskew PDF for merging.
Usage:pdftoolbox <input files> [options] <-outfile output >
- When you need to
pdftoolbox sample_testcmd.pdf -merge 1-9 21-end -outfile "_delete_pages(10-20)_out.pdf"
By this command line, I will extract pages of 1-9 and 21 to the end from the original PDF file and then create a new PDF as
from PDF file, please refer to the following command line template.
"_delete_pages(10-20)_out.pdf". This is not the direct way to get ride of pages but you can get the same effect. Now let us check effect from the following snapshot. There are 32 pages in input PDF file, and there only 21 pages in output PDF file. 11 pages have been removed.
- This function can also be used in batch. However, please note if you use the trial version, there will be watermark on output. When you register it, this limitation will be removed.
- When you need to rotate deskew pages in PDF, please refer to the following command line template.Rotate the first PDF page clockwise:
pdftoolbox in.pdf -merge 1R 2-end -outfile out.pdf
pdftoolbox in.pdf -merge 1E 2-end -outfile out.pdf
E : rotate 90 degrees, e.g., A4-9E is to rotate the pages 4-9 of file A by 90 degrees.
S : rotate 180 degrees.
W : rotate 270 degrees.
N : rotate 0 degree.
L : rotate counterclockwise.
R : rotate clockwise.
By this way, you can delete pages from PDF file easily. During the using, if you have any question, please contact us as soon as possible.