Answered
Viewing Layers in PDF Embed API
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>
