Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
3

How delete blocked SHX comments

Participant ,
Jul 22, 2020 Jul 22, 2020

How can I delete blocked SHX comments? File saved from AutoCAD

Screenshot_1.png

TOPICS
Edit and convert PDFs , How to
9.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Jul 24, 2020 Jul 24, 2020

I'm implemented some changes that should help it go faster. Download it from the same location and try it again.

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 22, 2020 Jul 22, 2020

You have to unlock them first. Right-click it, select Properties and untick the Locked check-box.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 23, 2020 Jul 23, 2020

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.

1.png2.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 23, 2020 Jul 23, 2020

Can you share a sample file with us?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 23, 2020 Jul 23, 2020
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 23, 2020 Jul 23, 2020

You can use this free tool I've developed to unlock them: http://try67.blogspot.com/2016/12/acrobatreader-unlock-all-comments-free.html

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 23, 2020 Jul 23, 2020

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 24, 2020 Jul 24, 2020

I'm implemented some changes that should help it go faster. Download it from the same location and try it again.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 24, 2020 Jul 24, 2020

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 24, 2020 Jul 24, 2020

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();
}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 24, 2020 Jul 24, 2020

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 24, 2020 Jul 24, 2020

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 24, 2020 Jul 24, 2020

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 18, 2023 Apr 18, 2023

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! 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 25, 2023 May 25, 2023

Hi ,

can anyone please tell me Procedure in Steps.

I've tried above scripts in action  wizard . It failed for me. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 02, 2022 Mar 02, 2022

You saved my day! Thanks, bro.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 13, 2023 Sep 13, 2023
LATEST

What method to delete this shx

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines