Set page Label without numbering style
Is it possible to apply a page label without numbering style like we can using style "none" with page numbering in Acrobat?
var labels = "4, 9, 13";
var labelsplit = labels.split(", ");
if (labelsplit.length == this.numPages) {
for (var i=0; i<this.numPages; i++) {
this.setPageLabels(i, ["D", "", labelsplit]);
//this.setPageLabels(i, ["r", "", labelsplit]);
//this.setPageLabels(i, [ "A", "C4-Lot", 4])
}
}
My problem is if my labels contain something else than integer...
For a label like "C4-LotD" I would have to evaluate if the last letter is upper case and then "D" is the fourth letter of alphabetical order to come out with:
this.setPageLabels(i, [ "A", "C4-Lot", 4])
Label not ending by alphanumeric character will be a problem. Maybe another way to label pages?
