Range error on Extract PDF Page Range

Hi there,

I am using “Extract PDF Page Range,” and it worked ok while testing, but then I got an error:

Message: specified argument was out of the range of the valid values.
Parameter name: Range
Exception Type: System.ArgumentOutofRangeException

It works with range “1”, but no other ranges (eg.“2”, “2-End”) seem to work. Any help would be appreciated.

Thank you,

you have to mention like this “2-9” is this not working??

Yes. That’s correct. It worked before though. It suddenly stopped working.

Thank you.

thats because you did not mention the range properly please do check once the pages in pdf!
Cheers @ultrarunner

In my case, the pdf file was some how protected (unable to insert or delete pages).
I solved this issu like this:
open pdf file in acrobat
click print and select a pdf printer
save a copy of the file

Then, the file was unprotected (able to insert pages)
I used the “Extract PDF Rage” and now it worked.