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

Show Annotations via api and not allow end user to add annotations

Community Beginner ,
Jul 22, 2021 Jul 22, 2021

Copy link to clipboard

Copied

I want to add some annotations to my PDF document via the APIs. Along with that I also want that the end-user should not add any annotations to the Document. 

enableAnnotationAPIs: true,
includePDFAnnotations:true,

But the showAnnotationTools setting should be true for both of these to work. Is there a way to handle this?

TL;DR
add annotations via API but not show the annotations tools 

TOPICS
PDF Embed API

Views

172

Translate

Translate

Report

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 ,
Aug 02, 2021 Aug 02, 2021

Copy link to clipboard

Copied

LATEST

showAnnotationTools cannot be set to false if you want to use annotation APIs.

 

But you can use the setConfig API which supports certain special UI configurations.

- showToolbar: Control the visibility of the commenting tools in the top bar

- showToolsOnTextSelection: Control the visibility of the commenting tools which get displayed after text selection.

 

For more details, please see the section Comments and Markup -> APIs to control UI configurations -> setConfig API in the official documentation. Hope this helps!

Votes

Translate

Translate

Report

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
Resources