Rotate specified pdf page content using command line

Occasionally, some page content of your pdf file do not fit well, you are bound to rotate them to fit the whole pages. That’s to say, you have to rotate specified pdf page content. When the specified pages are a few, you can rotate them one by one, so how about there are countless pages, what’s your plan? Using Advanced PDF Tools Command Line, the tedious task will prove to be easy.

Following the below steps, you will not only possess this useful tool but also know how to use it.

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”

Snap78

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 rotate specified pdf page content

pdftools -i “C:\input.pdf” -o “C:\output.pdf” -@ “270” -x “0 0 612.0 792.0” -j “612.0 792.0 true” –u “2,5-9, 13”

where

  • the option -i is to specify a pdf file name or a directory for input
  • the option -o to specify the pdf file name for output
  • “-@” to set page rotation, here “270″ to rotate page content of document of 270 degree
  • -x “0 0 612.0 792.0″ -j “612.0 792.0 true” to change page content size 
  • –u to specify pages

You can substitute those numbers in line with your requirement.

Note, the purpoe of posting -x “0 0 612.0 792.0″ -j “612.0 792.0 true” here is to vividly show the rotate effect, and how to change page size, you can read “Edit pdf page content size using command line”  https://www.verypdf.com/wordpress/201111/edit-pdf-page-content-size-using-advanced-pdf-tools-command-line-13179.html

when the input is done, press “enter” key, you will see

Snap233

Step 4 open the file to check the result.

Snap235Snap236  

the page2’s content has been smoothly rotated. it’s totally different that of page 1, the same story goes to specified pages 5-9 (from 5to 9) and 13.

if you have further needs on pdf files, you can visit at www.verypdf.com.

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!