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

How to accept PDFComments in InDesign through script

Community Beginner ,
Nov 17, 2021 Nov 17, 2021

Copy link to clipboard

Copied

Once imported the PDF comments in InDesign document then how to "Accept" it(PDFComments) in InDesign through the scripts.

TOPICS
Scripting

Views

473

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 ,
Nov 17, 2021 Nov 17, 2021

Copy link to clipboard

Copied

Maybe something like the following

app.documents[0].pdfComents.everyItem().changeStatus(CommentStatusEnum.RESOLVED_STATUS)

P.S.:- I have not tested this

-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
Community Beginner ,
Nov 18, 2021 Nov 18, 2021

Copy link to clipboard

Copied

Thanks Manan.

The comment was resolved but not "Accepted"(Not applied on layout page).

I need to update on layout page also.

I've attached sample i/p and o/p FYR.

 

Sample Input:

Input.png

 

Manual/Expected Output:

Manual_Output.png

 

Given Code Output:

Given_Code_Output.png

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 ,
Nov 18, 2021 Nov 18, 2021

Copy link to clipboard

Copied

Then it seems this is not possible via scripting. I can't see any other property or method of interest that can be used. See the following

https://www.indesignjs.de/extendscriptAPI/indesign-latest/index.html#PDFComment.html

Maybe someone else will chime in with some insights.

-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
Community Expert ,
Nov 18, 2021 Nov 18, 2021

Copy link to clipboard

Copied

Hi Eyenan and Manan,

that's my impression as well. There are some methods missing with pdfComments in InDesign.

If you are part of InDesign Prerelease you could follow and revive a discussion we had there some years ago when pdfComments were introduced with InDesign CC 2019.

 

Regards,
Uwe Laubender

( ACP )

 

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 ,
Nov 18, 2021 Nov 18, 2021

Copy link to clipboard

Copied

LATEST

Thanks Uwe for sharing information about the prerelease discussion. I will look into it but it seems if this has been brought to attention since so long without any redressal then it might languish a bit more.

-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