Document language metadata via JavaScript

Hi.

I cannot figure how to programaticaly write into the "Language" metadata using JavaScript.
(Properties > Advanced > Language)

I know that I can set it using an Acrobat's Action but it's not that I need.
I checked the "info" and the "doc. properties" in the JS Reference without success.

Did I mess something or is it impossible?


JR Boulay


4 Answers

Voted Best Answer

Actually, I remembered how it can be done... You can create a Preflight Profile that does it and then run it using the preflight method of the Document object.

.


Visit my custom-made PDF scripts website: http://try67.blogspot.com
Contact me personally: try6767@gmail.com


By Gilad D (try67)   

AFAIK, it's not possible to set this property with JS.

.


Visit my custom-made PDF scripts website: http://try67.blogspot.com
Contact me personally: try6767@gmail.com


Gilad D (try67)   

Thanks. I know but I need to write in this metadata accordingly of a susbtring extracted from the filename, so this Action cannot be used (there are about 17 possible languages).


JR Boulay   

This was my last question on AcrobatUsers.com since it will be closed tomorow. Be well.


JR Boulay   


Please specify a reason: