Skip to main content
Participant
November 2, 2016
Answered

enable editing button click/command in JavaScript after opening PDF/A in read only mode

  • November 2, 2016
  • 1 reply
  • 1049 views

is there any way using JavaScript to perform this function for a PDF/A document opened in read-only mode when preferences are set to PDF/A read only mode ? Thanks for any help you might provide;

This topic has been closed for replies.
Correct answer George_Johnson

There is a way using Preflight to remove the PDF/A compliance indicator, but to do so you'd still have to disable the user preference in order for Acrobat to allow the change.

1 reply

Inspiring
November 2, 2016

What function do you want to perform? JavaScripts are not allowed in PDF/A conforming documents.

Participant
November 2, 2016

...thx for quick reply...my q is really about whether (through OLE Automation, JSObject, or just by simply opening up the Script Debugger window) the initial banner (pictured below) can be disposed of;

Obviously setting the preference for read-only opening of PDF/A to 'never' is one way of ensuring this banner never appears, but can I get rid (i.e. remove the PDF/A compliance & corresponding XMP props from the document) it any other way ? I thought there might be some command which could be executed in code which would achieve exactly the same effect as a simple mouse click...

the reason for doing this is that once it is remove, I can then execute script (locally or remotely) to perform a preflight conversion according to another PDF profile;

 

George_JohnsonCorrect answer
Inspiring
November 2, 2016

There is a way using Preflight to remove the PDF/A compliance indicator, but to do so you'd still have to disable the user preference in order for Acrobat to allow the change.