Skip to main content
Participant
September 25, 2024
Question

Disable Undo / Redo buttons

  • September 25, 2024
  • 1 reply
  • 347 views

I have been trying to customize the Adobe Pdf Embed Api UI. I know from looking at the documentation, that you can pass in config options to turn off ui elements. How do I disable the undo/redo buttons, since I couldn't see anything on the docs that mentioned it

openPdf() {
      const viewerOptions = {
        showDownloadPDF: false,
        showPrintPDF: false,
        showLeftHandPanel: false,
        showThumbnails: false,
        enableAnnotationAPIs: true,
        includePDFAnnotations: true,
        showAnnotationTools: true,
        dockPageControls: false,
        showDownloadPdf: false,
        enableLinearization: true,
      }
      try {
        this.adobeDCView
          ?.previewFile(
            {
              content: {
                location: {
                  url: this.url,
                },
              },
              metaData: { fileName: 'File', id: 'pdf-1' },
            },
            viewerOptions
          )
      } catch (ex) {
        console.error(`Adobe Pdf File Failed To Load : ${ex}`)
      }
}

 

    This topic has been closed for replies.

    1 reply

    Raymond Camden
    Community Manager
    Community Manager
    September 25, 2024

    That isn't supported.