• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Viewing Layers in PDF Embed API

New Here ,
Oct 15, 2021 Oct 15, 2021

Copy link to clipboard

Copied

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>
TOPICS
PDF Embed API

Views

367

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

correct answers 1 Correct answer

Community Expert , Oct 15, 2021 Oct 15, 2021

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

Votes

Translate

Translate
Community Expert ,
Oct 15, 2021 Oct 15, 2021

Copy link to clipboard

Copied

LATEST

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

Votes

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