Disable "Download Document"

New Here ,
May 10, 2022 May 10, 2022

Copy link to clipboard

Copied

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

TOPICS
PDF Embed API

Views

80

Likes

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 ,
May 12, 2022 May 12, 2022

Copy link to clipboard

Copied

LATEST

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>

Likes

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