Copy link to clipboard
Copied
Hello everyone, I am using Acrobat X. this.movePave(3,5) comment moving 4th page to 6th position. this.movePage(5,3) is not moving 6th page to 4th position. Please some one explain how to use this.movePage().
You should read the documentation instead of guessing:
Copy link to clipboard
Copied
The documentation:
Copy link to clipboard
Copied
What is it doing, then?
Also, are you executing the two commands one after another?
Copy link to clipboard
Copied
Hello try67, I found your answers helpful in many forums. Specially interleave pages. I am not so much aware of java scripts. I used to search script online for my need and use them. Reveres the pages; interleave page arrangements; spell errors and so.
Now I am looking at how those individual comments working. Coming to point: this.movePage(3,5) moving 4th page to 6th page.
I rearrange the page again as it was at first. Then this.movePage(5,3) moving the 6th page to 5th page. And I found for this.movePage(x,y); x is lesser than y means it moving (x+1)th page to (y+1)th page. Where x is greater than y, it doing something what i could not understand.
Copy link to clipboard
Copied
this.movePage(5,3) moves the 6th page after the 4th page. This is correct.
Copy link to clipboard
Copied
Naaah. this.movePage(5,3) moves the 6th page to 5th page.
For x greater than y, this.movePage(x,y) moves (x+1)th page to (y+1)th page.
For x lesser than y, this.movePage(x,y) moves (x+1)th page to (y+2)th page.
This is what happening. I could not understand the logic behind this. Is this correct? or I have any version bug?
Copy link to clipboard
Copied
The 5th page is the page after the 4th page.
Copy link to clipboard
Copied
After these months, I came to this encounter again. Came here and reading this. The answers are not correct.
Question:
For x greater than y, this.movePage(x,y) moves (x+1)th page to (y+1)th page.
For x lesser than y, this.movePage(x,y) moves (x+1)th page to (y+2)th page.
This is what happening. I could not understand the logic behind this. Is this correct? or I have any version bug?
Some one try movePage(3,5) and movePage(5,3). You can understand my question.
Detail:
this.movePage(3,5) moving 4th page to 6th page. right? right....
Then this.movePage(5,3) have to move 6th page to 4th page. Right? this is what I am expected. but it is moving 6th page to 5th page. Catch me? It is moving 6th page to 5th page instead of 6th page to 4th page.
How it is happening?????
Copy link to clipboard
Copied
this.movePage(5,3) moves the 6th page after the 4th page. Read the documentation.
Copy link to clipboard
Copied
You should read the documentation instead of guessing:
Copy link to clipboard
Copied
Copy link to clipboard
Copied
No. The answers are clear. Now I am looking for deleting pages listed in excel sheet.