Script help required to get the pages that are actually spawned to delete.
- February 16, 2024
- 2 replies
- 423 views
Hi there,
I have a script that needs to run each time to delete the spawned pages in the pdf document.
Unfortunately, it stops if any of the pages aren't spawned. Is there anyway to get the script to run and ignore the pages that aren't spawned. Basic I want to reset the spawned pages before more are spawned through the javascipt.
var f = this.getField("Page text 5.1").page; this.deletePages(f);
var g = this.getField("Page text 6.1").page; this.deletePages(g);
var h = this.getField("Page text 7.1").page; this.deletePages(h);
var j = this.getField("Section4-5.1").page; this.deletePages(j);
var k = this.getField("Section4-6.1").page; this.deletePages(k);
var l = this.getField("Section4-7.1").page; this.deletePages(l);
var m = this.getField("Section4-8.1").page; this.deletePages(m);
Any help would be greatly appreciated.
Steve
