The extractPages method can't be used in Reader, under any circumstances.
Well, your answer is not really helpful though, its kind of: you can't drive a car without tires but your not explaining the op why...
I've had a similiar problem last I've tested the function the op wrote and it works! The problem is located not because of the function, its the protected mode which causing problems.
If you disable it, it works like a champ.
So the question would be, at least for me: "how to rewrite the function so that even if protected mode is on, it still works"
For the op, to disable protected mode in Windows 7 the fastes way I've could think of was the registry under (according to your reader version!):
Change the Value from 1 to 0 and try again.
It might not be helpful to you, but it is the reason your code is not working (in Reader), and there's nothing you can do to change it. Sorry, but that's just how it is.
No offend, what I mean with not helpful you dont explain any reasons, what should the op do instead, search the whole internet for a solution?
(Not my code, op's code) But again, the code works when protected mode is switched off, so you are wrong, the code is working at least for me.
And click the "X" at the top right-hand corner and read what it says.
If for some reason it is working for you, then that's a bug and will probably stop working the next time you update your application.
The property or method is not allowed in Adobe Reader but is available in Acrobat Pro and Acrobat Standard.
Thank you for clarifiying thing..
Well might be that I've tested it with a standard version, may I asked what you would use instead, got curious now.
There is no alternative for Reader. There are many functions for which Adobe intend and expect that you must buy Acrobat. This is the outcome they want.