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

How to accept PDFComments in InDesign through script

Community Beginner ,
Nov 17, 2021 Nov 17, 2021

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

TOPICS
Scripting
1.0K
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 ,
Nov 17, 2021 Nov 17, 2021

Maybe something like the following

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

P.S.:- I have not tested this

-Manan

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

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

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

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

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

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 )

 

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

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