Edit pdf content of odd number pages using command line

If you deal with pdf files frequently, it is quite normal to see the formats of the odd number pages and even number pages are different in terms of page number. So you will first edit odd number and then the even one, vice versa. Advanced PDF Tools Command Line is proficient in edit this. If there are countable pages you just add number (1,3,5,7…) to the command line, if there are countless pages, you can add odd number (odd), and then press “enter” key, the edit will be settled. For example, edit pdf content 60% of the page width and 70% of the page height and content centered of odd number pages, you can test by following the procedures.

Step 1 click the following link to download Advanced PDF Tools

https://www.verypdf.com/pdfinfoeditor/advanced_pdf_tools_cmd.zip

please unpack it when download is finished.

Step 2 launch the MS-DOS command prompt window. Because the command line is bound to be operated under the MS-DOS environment. The procedure is easy, and the following pictures will guide you.

1) click “start” and then go to “Run”

Snap100

Snap101

2) input cmd into the following

Snap57

3) press “ok”, you will find MS-DOS command prompt window popping up

Snap1

Step 3 input command line to edit pdf content of odd number pages

pdftools.exe -i “C:\input.pdf” -o “C:\output.pdf” -j “60% 70% true” -u “1,3,5,7,9,11,13,15”

where

  • -i is to specify a PDF filename or a directory for input.
  • -o is to specify the PDF filename for output.
  • -j “60% 70% true” : -j is to specify set page content,“60% 70% ”  the first parameter means to set page content to 60% of the page width and the second parameter to 70% of the page height,  true the third parameter is a Boolean type value to set whether to center on page. 
  • -u “1,3,5,7,9,11,13,15”: -u is to specify pages. “1,3,5,7,9,11,13,15”  refers to the odd number or you just input –u “odd” instead.

once you finish input, press “enter” key, you will see

Snap172

Step 4 open the file to check the result if the content of odd number pages is different from that of even number pages

Snap173 a zoomed one

Snap136

From the picture you are allowed to see the pdf content of  page1 became 60% of the page width and 70% of the page height and content centered, color pink part shows the change. While the page 2 did not. So, you can check the rest even number page whose content is different from that of odd number page.  

If you are interested, you can use pdftools.exe -i “C:\input.pdf” -o “C:\output.pdf” -j “60% 70% true” -u “odd” to try, they both work, and the latter one is much more simpler.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!