Show custom close button when Invalid PDF structure message shown in viwer

Which product are you using?
PDFjs Express version

PDF.js Express Version

Detailed description of issue

I have added a custom close button on the header of the viewer to close the PDF view. I need to set the close button clickable if the PDF is invalid. Need to enable only that close.


You could add a custom modal using addCustomModal and disable the invalid pdf structure modal,
see: PDFJS Express WebViewer Namespace: UI

Thank you for your quick response. how can I disable the default invalid pdf structure modal? Can you provide a code example?

Hello portia,

You can use: PDFJS Express WebViewer Namespace: UI
and finding the data element using this guide: Apryse Documentation | Documentation

Best regards,