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

CC 2019 - PDFcomment (How can I get the relevant text)

Contributor ,
Jan 24, 2019 Jan 24, 2019

Copy link to clipboard

Copied

Dear Friends,

How can I get the relevant text (document text)?  Please see my below screenshot:

PDFComment.png

My code:

var doc = app.activeDocument;

var pdfComments = doc.pdfComments.everyItem().getElements(); 

var pdfCommentsLength = pdfComments.length; 

    for (var n=0; n<pdfCommentsLength; n++ ){

        var pdfCommentsDoc = pdfComments.commentContent; //Here with i got comment text (bold);

         //Also, i need to get the relevant text??? HOW!

            }

This is possible??

Here with, i have checked data browser in the relevant properties is not there. Please suggest friends.

Thanks,

SK

TOPICS
Scripting

Views

532

Translate

Translate

Report

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 ,
Jan 24, 2019 Jan 24, 2019

Copy link to clipboard

Copied

Hi SK:

I'll move this question to the InDesign Scripting​ forum for you so that you can get the answer you need.

~Barb

Votes

Translate

Translate

Report

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
Contributor ,
Jan 24, 2019 Jan 24, 2019

Copy link to clipboard

Copied

Hi BarbBinder,

Thanks your action!

Thanks,

SK

Votes

Translate

Translate

Report

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
Contributor ,
Jan 24, 2019 Jan 24, 2019

Copy link to clipboard

Copied

Hi Friends,

Any suggest for my above question? Please answers for this, possible or not?

Thanks

Karthik S

Votes

Translate

Translate

Report

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 ,
Jan 24, 2019 Jan 24, 2019

Copy link to clipboard

Copied

Hi Karthik,

This is already discussed in another thread with some thorough investigation on the matter and the results so far seem to point that the there is no way to access the selected text via scripting atleast. Have a look at the discussion at the following link

Re: pdfComments with commentType == UNDERLINE_TEXT_TYPE -- how to access

-Manan

Votes

Translate

Translate

Report

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 ,
Jun 27, 2023 Jun 27, 2023

Copy link to clipboard

Copied

LATEST

Hi Karthi,

 

Is their any update for your request

 

Regards,

Praveen

 

Votes

Translate

Translate

Report

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