Simple Javascript to properly add keywords to open document (xmp dc:subject)

May 28, 2019

Copy link to clipboard

Copied

anybody have javascript code to simply add keywords to the open document from within an action? this.info.keywords adds all delimited words as a single string, so I'm looking for code to set the XMP property dc:subject with a list of words. thanks!

TOPICS
Acrobat SDK and JavaScript, Macintosh

Views

103

Likes

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

Simple Javascript to properly add keywords to open document (xmp dc:subject)

May 28, 2019

Copy link to clipboard

Copied

anybody have javascript code to simply add keywords to the open document from within an action? this.info.keywords adds all delimited words as a single string, so I'm looking for code to set the XMP property dc:subject with a list of words. thanks!

TOPICS
Acrobat SDK and JavaScript, Macintosh

Views

104

Likes

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
May 28, 2019 0
Adobe Community Professional ,
May 28, 2019

Copy link to clipboard

Copied

Example #3 in the doc.metadata entry of the Acrobat JavaScript reference provides all the code you need to properly modify the XMP. 

Acrobat DC SDK Documentation

Likes

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
Reply
Loading...
May 28, 2019 0
Jaxn LATEST
May 28, 2019

Copy link to clipboard

Copied

thank you. this is helpful, but I'm not having much success in modifying this example to set the dc:subject bag array. are you aware of an example that specifically sets the keyword metadata correctly, since setting this.info.keywords does not work like I would have hoped?

thanks again.

Likes

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
Reply
Loading...
May 28, 2019 0