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

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

New Here ,
Nov 02, 2016 Nov 02, 2016

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;

TOPICS
Acrobat SDK and JavaScript
965
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

LEGEND , Nov 02, 2016 Nov 02, 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.

Translate
LEGEND ,
Nov 02, 2016 Nov 02, 2016

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

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 ,
Nov 02, 2016 Nov 02, 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;

  Capture.PNG

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
LEGEND ,
Nov 02, 2016 Nov 02, 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.

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 ,
Nov 02, 2016 Nov 02, 2016
LATEST

thanks George...really appreciate the clarification;

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