Copy link to clipboard
Copied
How can I delete blocked SHX comments? File saved from AutoCAD
Copy link to clipboard
Copied
I'm implemented some changes that should help it go faster. Download it from the same location and try it again.
Copy link to clipboard
Copied
You have to unlock them first. Right-click it, select Properties and untick the Locked check-box.
Copy link to clipboard
Copied
Thank you for taking the time to my questions, but the problem is that the Comment is not blocked. The checkbox is empty in the properties, I conclude that AutoCAD does this when converting to PDF.
Copy link to clipboard
Copied
Can you share a sample file with us?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
You can use this free tool I've developed to unlock them: http://try67.blogspot.com/2016/12/acrobatreader-unlock-all-comments-free.html
Copy link to clipboard
Copied
Many thanks! I downloaded and installed the script for you, it works. But unfortunately, very slowly, even in the example file, with a small number of blocked comments, 450 comments in 4 minutes. Usually, I need to delete 6000-7000 thousand comments.
Copy link to clipboard
Copied
I'm implemented some changes that should help it go faster. Download it from the same location and try it again.
Copy link to clipboard
Copied
Yes, it works instantly! Awesome, thank you very much.
I tried to add a delete all comments
annots[i].delete;
it didn't work, can you tell me the correct code?
Copy link to clipboard
Copied
Actually, it's: annots[i].destroy();
But it might not work because of the type of loop I'm using there.
Replace this part of the code:
for (var i in annots) {
annots[i].setProps({readOnly: false, lock: false});
}
With this:
for (var i=annots.length-1; i>=0; i--) {
annots[i].setProps({readOnly: false, lock: false});
annots[i].destroy();
}
Copy link to clipboard
Copied
Ideally! thank you so much! The last question: IS IT POSSIBLE TO DELETE BY FILTER, only those comments that have Test in the THEMA properties?
Copy link to clipboard
Copied
It's not possible to know which comments are displayed and which are not, no. It is possible to manually filter them in the script itself, based on various criteria.
Copy link to clipboard
Copied
Happened!
for (var i=annots.length-1; i>=0; i--) {
annots[i].setProps({readOnly: false, lock: false});
if (annots[i].author == "AutoCAD SHX Text")
annots[i].destroy();
}
Once again, thanks a lot!
Copy link to clipboard
Copied
This solution works where all others fail to remove to SXH Text Comments. When they number in the thousands, they are the most common cause of Acrobat memory leaks and program crashs. Thank you!
Copy link to clipboard
Copied
Hi ,
can anyone please tell me Procedure in Steps.
I've tried above scripts in action wizard . It failed for me.
Copy link to clipboard
Copied
You saved my day! Thanks, bro.
Copy link to clipboard
Copied
What method to delete this shx