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

Content Editing

New Here ,
Oct 25, 2016 Oct 25, 2016

Is there a way (method in Acrobat API) how to check that the current PDF document is PDF/A compliant and user already clicked "Enable Editing" button to allow modifications? In a custom plugin I need to enable/disable editing operations correctly.

Thanks

TOPICS
Acrobat SDK and JavaScript
421
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 ,
Oct 25, 2016 Oct 25, 2016

The latest version of the Acrobat DC SDK should have some methods exposed for checking compliance with various standards.

However, determine the ability to edit (or not), you should simply be using a Perms check – since all the PDF/A handling is managed through that (to prevent 3rd party plugins from making changes when they should not)

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 ,
Oct 26, 2016 Oct 26, 2016

Thanks for the answer.

If you mean PDPermReqOprModify I've already tried it but without success (returns 0 that operation is allowed on PDF/A document)

I need to support both Acrobat 11 and DC.

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 ,
Oct 26, 2016 Oct 26, 2016

May be worth posting

1 the code you use to test this

2 full value of the permissions flags

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

When I open a PDA/A document

PDDocPermRequest(pdDoc, PDPermReqObjDoc, PDPermReqOprModify, NULL)

returns 0. It means that the requested operation is allowed but it should not be.

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