Skip to main content
Participating Frequently
January 25, 2017
Answered

Need help on adobe sdk

  • January 25, 2017
  • 1 reply
  • 985 views

I need to write script which uses adobe's accessibility check functionality. I can do that easily through UI, I need to do the same from script so that I shouldn't open up UI every time. Any suggestions will be highly appreciated.

This topic has been closed for replies.
Correct answer Karl Heinz Kremer

We were just not able to fix from our creation process. So, is there not any Acrobat API or something which we can call to fix this. This was my very initial question also.

We are looking for SDK or API to do the job for us.

Thanks,


You should be able to set the XMP data while you create your PDF file. You are using iText, so take a look at the XmpWriter class. This is an Adobe hosted forum, so I won't go into any further details about how to do that (if you do need help, when I am not commenting here on the Adobe forums, I do run a consulting business around the PDF file format, feel free to get in touch with me via the link on my profile page).

Setting the title meta data using any of the available Acrobat SDK methods should do the trick. You can use JavaScript, you can use the IAC interface from e.g. VB, you can write an Acrobat plug-in to do that. So yes, there are API functions. You are using Java, there is no Java interface built into Acrobat, so you would need to use a different approach. Here is information about the JavaScript API:

Acrobat DC SDK Documentation - Doc.info

Here is information about the IAC API:

Acrobat DC SDK Documentation - PDDoc.SetInfo

1 reply

lrosenth
Adobe Employee
Adobe Employee
January 25, 2017

Do you mean so that you can do this in an automated fashion? If so, that feature isn’t designed to be automated in that way.

Participating Frequently
January 25, 2017

Thanks for your response. Yes I'm planning to perform the automation if possible. I have an application which generates the pdf and on top of that pdf also needs to pass adobe's accessibility full check. So, now what I'm doing is, I'm opening up UI every time and fixing it which takes like couple of minutes for single pdf. Therefore what I was thinking is if I could write some script which calls that particular functionality using API or SDK then that'll be great for me. So, I shouldn't open up UI every time. This is my question in detail. Is this doable because I'm going through each and every document provided by adobe's sdk and couldn't find much help over there.

I hope you're more clear now.

Waiting for your response.

Thanks again.

lrosenth
Adobe Employee
Adobe Employee
January 25, 2017

The best way would be to make sure that the creation process you are using is making Accessible PDFs from the beginning. Can you change/fix the creation process.

Accessibility checking and fixing MUST be a manual/human intervention process due to the nature of the requirements. It cannot be fully automated.