Copy link to clipboard
Copied
Does the Javascript API allow getting/setting these document properties:
I can't see anything obvious in the May 2015 API reference.
Copy link to clipboard
Copied
Does the Javascript API allow getting/setting these document properties:
I can't see anything obvious in the May 2015 API reference.
Copy link to clipboard
Copied
Is this inquiry related to accessibility?
Copy link to clipboard
Copied
It is -- I am developing Javacript actions for an Action Wizard. The goals are to:
Another goal:
Is it possible to iterate over the tags in the document?
Copy link to clipboard
Copied
These are not really my areas of expertise, but I can say that, yes, the built-in feature in the Action Wizard can take care of this. I don't think that JavaScript is needed. For the Autotagging action yuo may also want to incorporate the Accessibility Checker as an action (under the same action--- you can combine various actions into one, and run them in a specied sequence). The Accessibility Checker will handle auto-tagging, checking the language, generating a report (which allows to perform manual fixes (if needed)) and possibly even fix bookmark structure.
See here: https://helpx.adobe.com/acrobat/using/create-verify-pdf-accessibility.html
If you run into problems due to changing tcontent objects you may need to address this manually. See here: https://helpx.adobe.com/acrobat/using/editing-document-structure-content-tags.html
You can use the built-in auto tagging feature as mentioned above for this. However, in my humble opinion, perform this action silently you may not catch if an error is encountered during the procedure.
About the iteration over the tags in a document, I am not sure if this is even possible with JavaScript, but it seems to be possible to iterate over bookmarks (if this is what you meant), which is described in detail in this topic with a javascript example: https://answers.acrobatusers.com/Change-bookmarks-javascript-q73866.aspx
In particular, check Karl Heinz Kremer's answer in that thread : "You need to iterate over all bookmarks and then set the name approprately. The documentation for the "children" property has sample code that shows how to iterate over all bookmarks"
And also check the script that try67 provided in that link.
Copy link to clipboard
Copied
And check this other thread with a solution provided for another user by Thom Parker: