How to delete pages based on page labels rather than page numbers in Javascript?
Hey everybody,
First post on here. Searched extensively and I couldn't find any answers to this question.
I have a fillable form that I'd like to add a button to that will delete a set of pages. The page numbers on these may change as someone edits the pdf, so I cannot delete them using the deletePages() function. I have tried giving these pages specific labels (which seem like they should stay the same regardless of whether people add or remove pages throughout).
Is there a javascript function to delete pages based on the page label or convert the label to the page number? Or another workaround for this?
