Skip to main content
Participating Frequently
April 15, 2021
Question

Pdf keywords into dynamic stamps

  • April 15, 2021
  • 2 replies
  • 1694 views

I'm trying to included a pdf's keywords in a dynamic stamp, and it just won't work.

Here is my code for that form field:

event.value=event.source.source.info.keywords;

I'm using the following to insert the file name into the stamp, and it works fine:

event.value = event.source.source.documentFileName;

Anyone have any insight?

Thanks, N

This topic has been closed for replies.

2 replies

Legend
April 16, 2021

Are these keywords accessible from doc.info.Keywords in other places (such as the JavaScript console)?

Participating Frequently
April 16, 2021

app.doc.info.Author returns the correct object.

app.doc.info.Keywords no go.

try67
Community Expert
Community Expert
April 16, 2021

Can you share the file in question with us?

Also, what version of Acrobat are you using, and on what OS?

Legend
April 15, 2021

In the doc it is Keywords, not keywords.

Participating Frequently
April 16, 2021

Unfortunately I tried "Keywords" as well. No luck.

Really, how freakin hard does it have to be to get keywords to display on a pdf?!

try67
Community Expert
Community Expert
April 16, 2021

Just tried it with the code above (using Keywords) and it works just fine.