Question
Disable Undo / Redo buttons
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}`)
}
}
