Delete Empty Comments with a Script
Dear all, hope you are good and safe,
could someone help me with the following?
after making a markup PDF with many comments, I want to run a script to search and delete just the empty comments (empty sticky notes, rectangles, circles). what I found until now is the following, but this removes everything.
this.syncAnnotScan(); var annots = this.getAnnots(); if (annots!=null) { for (var i=annots.length-1; i>=0; i--) { annots[i].destroy(); } }