PDF Embed API:Annotation not visible when annoation tool bar is disabled
According to the documentation - if enableAnnotationAPIs is true then I should be able to see annotations that were added programmatically
- If annotations APIs are enabled (enableAnnotationAPIs: true) and includePDFAnnotations: false, then: - The PDF Embed API does not display existing annotations, but will display new ones. -
- - Any annotation added or updated either from the UI or API is not saved to the PDF buffer; therefore, no Save button appears in the top bar.
However the only way I can see annotations that were added programatically is if showAnnotationTools is enabled - however I don't want the annotation tool bar to be enabled because I don't want users to manually create/alter annotations- I should be able to see annotations that were added programatically without enabling the annotation tool bar. I get the following error in the javascript
status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILUREUncaught (in promise) Annotation APIs not enabled.My code:
document.addEventListener("adobe_dc_view_sdk.ready", function(){
var adobeDCViewer = new AdobeDC.View({clientId: "f040089fe9704ba9966d0761988a6708", divId: "adobe-dc-view"});
var previewFilePromise = adobeDCViewer.previewFile({
content: {location: {url: "db2.pdf"}},
metaData: {fileName: "msgLogpdf", id: "77c6fa5d-6d74-4104-8349-657c8411a834"}
},
{
enableAnnotationAPIs: true,
includePDFAnnotations: false,
showAnnotationTools:false,
enableFormFilling:false,
showDownloadPDF:false,
showPrintPDF:false
}) ;
My browser is IE Edge and Operating System is windows 10
