Remove Specific Page From PDF Document
I have a textbox, txtPageNum, and I want that when clicked will remove the specific page number entered in txtPageNum. I also want it to validate and alert if the field is null.
So far I have tried the following code:
if(this.getField("txtPageNum").value =""){
app.alert("Please enter a page number to remove.", 3)
}else{
var p = Number(this.getField("txtPageNum").value);
this.deletePages(p);
}
Every time I click the button it deletes the first page of the document. What am I doing wrong?
Randy Burkholder