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

Hide Annotations on PDF?

New Here ,
Feb 01, 2022 Feb 01, 2022

Copy link to clipboard

Copied

Hi there, 

I have been trying to hide annotations on a PDF. After reading the documentation and reviewing the community forums, I was able to disable the annotation tools, downloading and printing. However, I thought that includePDFAnnotations: false would hide the annotations that are on the document. They however are still rendering on the document. Below is the code that I am using.

 

My goal is to create a toggle that would allow someone to view the PDF with annotations and without. Any help would be greatly appreciated. Thanks!

 

console.log("script running")
console.log("updated 02/01/2022")


document.addEventListener("adobe_dc_view_sdk.ready", function(){

var adobeDCViewer = new AdobeDC.View({clientId: "<my Key>", divId: "adobe-dc-view"});

var previewFilePromise = adobeDCViewer.previewFile({
content: {location: {url: "lakers.pdf"}},
metaData: {fileName: "lakers.pdf"}
},
{
  enableAnnotationAPIs: false,
  includePDFAnnotations: false,
  showAnnotationTools:false,
  enableFormFilling:false,
  showDownloadPDF:false,
  showPrintPDF:false
})
});

 

TOPICS
PDF Embed API

Views

239

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
Community Expert ,
Mar 11, 2022 Mar 11, 2022

Copy link to clipboard

Copied

LATEST

Do you need to hide/show annotations that were created by another PDF tool or only ones created using Embed API? 

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