# Does pdfjs express plus support click wrap

**URL:** <https://pdfjs.community/t/does-pdfjs-express-plus-support-click-wrap/2731>\
**Category:** Technical Support\
**Created:** [July 19, 2023, 8:36pm UTC](https://pdfjs.community/t/does-pdfjs-express-plus-support-click-wrap/2731 "2023-07-19T20:36:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shruti](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@shruti](https://pdfjs.community/u/shruti)\
**Post date:** [July 19, 2023, 8:36pm UTC](https://pdfjs.community/t/does-pdfjs-express-plus-support-click-wrap/2731/1 "2023-07-19T20:36:11Z")

</div>

**Which product are you using?**  
PDF.js Express Plus

**PDF.js Express Version**  
8.7.0

**Detailed description of issue**  
We have some pdfs with a click wrap page. A “click-wrap” page is an injected page that displays a front or cover page (like an NDA) with buttons that they need to accept in order to see the PDF document. Does pdfjs express plus support these kind of documents?

**Expected behaviour**  
When someone opens the PDF, a cover page or dialog box appears that says some version of “You must agree to the following terms by clicking Yes to continue. If you click No, the document will close.” When they click Yes, the document appears and they can continue; if they click No, the document closes or is not displayed.

**Does your issue happen with every document, or just one?**  
NA

---

<div class="post-metadata">

**Author:** ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)\
**Post date:** [July 20, 2023, 3:57pm UTC](https://pdfjs.community/t/does-pdfjs-express-plus-support-click-wrap/2731/3 "2023-07-20T15:57:37Z")

</div>

Hi there,

Thank you for contacting pdf.js express forums,

There is no native feature like a ‘click wrap’, however you could try the following:

- use the addCustomModal API to create a custom modal  
[PDFJS Express WebViewer Namespace: UI](https://pdfjs.express/api/UI.html#.addCustomModal__anchor)
- Open the custom modal on documentLoad event  
[PDF.js Express Viewer Events | Documentation](https://pdfjs.express/documentation/learn-more/events.8#documentviewer.documentloaded)
- If ‘yes’ is not selected, call closeDocument:  
[PDFJS Express WebViewer Class: DocumentViewer](https://pdfjs.express/api/Core.DocumentViewer.html#closeDocument__anchor)

Best regards,  
Kevin Kim
