Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Need help on adobe sdk

New Here ,
Jan 24, 2017 Jan 24, 2017

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.

TOPICS
Acrobat SDK and JavaScript
839
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 10, 2017 Feb 10, 2017

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 sho

...
Translate
Adobe Employee ,
Jan 24, 2017 Jan 24, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 25, 2017 Jan 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 25, 2017 Jan 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 30, 2017 Jan 30, 2017

So, we were able to fix the creation process and most of the issues are already fixed but there’s a title issue which still remains to be fixed. Therefore I guess we should not perform the whole compliance check.

Only title needs to be updated since it is tagged incorrectly in the generated PDF.  How we can tackle this?

Let me know if it's unclear.

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 30, 2017 Jan 30, 2017

What do you mean it is “tagged incorrectly”? What is the actual error message?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 31, 2017 Jan 31, 2017

titleError.png

This is the only error left, which we are unable to fix from that creation process.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 08, 2017 Feb 08, 2017

Hi Irosenth,

I'm reaching out again on this issue. Any suggestions?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 08, 2017 Feb 08, 2017

This is not a problem with tags, the "Title" is part of the document meta data. Have you tried to right-click on the error message and select "Explain"? This will give you some background information for each failed test. In this case, you would get to this page:

Create and verify PDF accessibility, Acrobat Pro DC

You will have to provide a title either manually (Ctrl-D or Cmd-D, then go to the "Description" tag and fill in the title information, or automatically during document creation by providing information for the Title meta data element.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 09, 2017 Feb 09, 2017

We are doing it manually after creation process generates the pdf.  But if possible we want to completely avoid the human work.

Talking about the providing information we already did from our creation process as you can see down below.

Capture1.PNGCapture2.PNG

Thanks....

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 09, 2017 Feb 09, 2017

You are not using the Acrobat API, this actually looks like code written for iText. You will have to find out why the Title meta data is not correctly written to the PDF file. When you store meta data, there tis the old and the new (actually, not that new anymore) way: Originally, meta data was just stored in the "Info" dictionary in a PDF file. Now, you store the meta data as XMP data in the Metadata stream in the document's root object. For PDF/A files, metadata needs to be stored as XMP data, if you also have the Info dictionary, you will have to make sure that both methods store the same information.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 10, 2017 Feb 10, 2017

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,

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 10, 2017 Feb 10, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 20, 2017 Feb 20, 2017
LATEST

Thanks XmpWriter was the problem. We figured it out.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines