Skip to main content
New Participant
May 11, 2022
Question

Disable "Download Document"

  • May 11, 2022
  • 1 reply
  • 1173 views

Hello, is there a way to disable "Download Document" when user right click on the pdf in PDF Embed API? 

1 reply

Raymond Camden
Community Manager
Community Manager
May 12, 2022

I'm not sure what you mean by the right click menu as I'm not seeing download *there*, but you can disable by using showDownloadPDF:false. Sample code generated by our Embed demo (https://documentcloud.adobe.com/view-sdk-demo/index.html#/customize/FULL_WINDOW/Bodea%20Brochure.pdf)

 

<div id="adobe-dc-view"></div>
<script src="https://documentcloud.adobe.com/view-sdk/main.js"></script>
<script type="text/javascript">
	document.addEventListener("adobe_dc_view_sdk.ready", function(){ 
		var adobeDCView = new AdobeDC.View({clientId: "<YOUR_CLIENT_ID>", divId: "adobe-dc-view"});
		adobeDCView.previewFile({
			content:{location: {url: "https://documentcloud.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf"}},
			metaData:{fileName: "Bodea Brochure.pdf"}
		}, {showDownloadPDF: false});
	});
</script>
New Participant
February 24, 2025

This doesn't disable it; it just hides it.  The user can press ctrl-P and print the pdf to a file.  There seem to be a lot of threads requesting the ability to disable downloads.  Could adobe just implement it?