# What is the correct way to enable fullAPI using react

**URL:** <https://pdfjs.community/t/what-is-the-correct-way-to-enable-fullapi-using-react/3241>\
**Category:** Technical Support\
**Created:** [April 27, 2024, 9:22pm UTC](https://pdfjs.community/t/what-is-the-correct-way-to-enable-fullapi-using-react/3241 "2024-04-27T21:22:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tim](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@tim](https://pdfjs.community/u/tim)\
**Post date:** [April 27, 2024, 9:22pm UTC](https://pdfjs.community/t/what-is-the-correct-way-to-enable-fullapi-using-react/3241/1 "2024-04-27T21:22:17Z")

</div>

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

**PDF.js Express Version**  
8.7.4

**Detailed description of issue**  
Can not load full API if i add “fullAPI:true” to webviewer constructor i get the following error:

```javascript
Uncaught (in promise) Error: "fullAPI" is not a valid constuctor option for PDF.js Express. Please make sure you are referring to the proper documentation (https://pdfjs.express/documentation)

```

**Expected behaviour**  
{Provide a screenshot or description of the expected behaviour}

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

**Code snippet**

```javascript
useEffect(() => {
    WebViewer(
      {
        path: '/webviewer/lib',
        licenseKey: 'my key',
        initialDoc: 'https://path_to_doc.pdf',
        fullAPI: true,
      },
      viewerRef.current
    ).then((instance) => {
      setInstance(instance);
      const { PDFNet, documentViewer } = instance.Core;
      documentViewer.addEventListener('documentLoaded', async () => {
        await PDFNet.initialize();
        fetchMarkups(); 
      });

    });
  }, []);

```

---

<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:** [April 29, 2024, 3:19pm UTC](https://pdfjs.community/t/what-is-the-correct-way-to-enable-fullapi-using-react/3241/3 "2024-04-29T15:19:04Z")

</div>

Hi there,

For pdf.js express, fullAPI is not a valid parameter and will not work.  
If you need to use fullAPI for document manipulation and other features, we recommend checking out Apryse WebViewer.

Best regards,  
Kevin Kim
