Skip to main content
Participant
October 15, 2021
Answered

Viewing Layers in PDF Embed API

  • October 15, 2021
  • 1 reply
  • 593 views

I'm using the PDF Embed API to add a PDF to my site. My PDF document has multiple layers which can be toggled on or off when viewed in Adobe Acrobat. I want to maintain/enable this functionality when using the Embed API, but the layer panel does not appear on the left-hand pane. How can I activate this feature?

 

It's the basic implementation, but just in case, here is my current code (with my information removed):

<div id="adobe-dc-view"></div>
<script type="text/javascript">
document.addEventListener("adobe_dc_view_sdk.ready", function(){
var adobeDCView = new AdobeDC.View({clientId: "my-client-id", divId: "adobe-dc-view"});
adobeDCView.previewFile({
metaData:{fileName: "file-name"}
}, {showAnnotationTools: false, showPageControls: false, showDownloadPDF: false,
showPrintPDF: false});
});
</script>
This topic has been closed for replies.
Correct answer Joel Geraci

Unfortunately, the current Embed API does not have layer support. 

1 reply

Joel Geraci
Community Expert
Joel GeraciCommunity ExpertCorrect answer
Community Expert
October 15, 2021

Unfortunately, the current Embed API does not have layer support.