Skip to main content
Participating Frequently
Apr 15, 2021 7:30 PM UTC
Question

Pdf keywords into dynamic stamps

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 is closed to new replies. Start a new post to keep the conversation going.

13 replies

Legend
Apr 16, 2021 2:09 PM UTC

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

Translate
Participating Frequently
Apr 16, 2021 2:44 PM UTC

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

app.doc.info.Keywords no go.

Translate
try67
Community Expert
Community Expert
Apr 16, 2021 2:57 PM UTC

Can you share the file in question with us?

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

Translate
Legend
Apr 15, 2021 7:39 PM UTC

In the doc it is Keywords, not keywords.

Translate
Participating Frequently
Apr 16, 2021 2:03 PM UTC

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?!

Translate
try67
Community Expert
Community Expert
Apr 16, 2021 2:16 PM UTC

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

Translate