Open RutvikJR opened 8 months ago
Found any way out?
Try using styling through className = in the DocViewer component
<DocViewer
config={config}
documents={previewFile}
className={style.docViewer}
/>
================= MY Styles.ts ================================
` export default mergeStyleSets({ docViewer: {
zIndex: 10,
justifyContent: "center",
},
["#pdf-download"]: {
visibility: "hidden",
},
},
}); `
I want to disable the download option in pdf control. I have gone through the documentation and code but have not been able to find any way to do it. I think I can do it manually by overriding CSS but it will be better if we have options to manage it in config. `<DocViewer style={{ width: "30vw" }} documents={[ { uri: getFileUrl(document?.document_path ?? ""), fileName: document.document_type, }, ]}