# Unable to see my document because of fullAPI

**URL:** <https://pdfjs.community/t/unable-to-see-my-document-because-of-fullapi/2270>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [January 3, 2023, 5:04pm UTC](https://pdfjs.community/t/unable-to-see-my-document-because-of-fullapi/2270 "2023-01-03T17:04:33Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![julien.beduneau](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@julien.beduneau](https://pdfjs.community/u/julien.beduneau)\
**Post date:** [January 3, 2023, 5:04pm UTC](https://pdfjs.community/t/unable-to-see-my-document-because-of-fullapi/2270/1 "2023-01-03T17:04:33Z")

</div>

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

**PDF.js Express Version**  
8.2.0

**Detailed description of issue**  
Working with VueJs, I am not able to sign my document via my projects, the folowing error is shown : Full version of PDFNetJS has not been loaded. Please pass the “fullAPI: true” option in your WebViewer constructor to use the PDFNet APIs.

**Expected behaviour**  
I should see my document and have the rights to sign it.

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

**Link to document**  
I do not have link

**Code snippet**

```javascript
<template>
  <div ref="viewer" class="_pdfWebViewer"></div>
</template>

<script lang="ts">
//#region -> IMPORTS ///////////////////////////////////////////////////////////////////
import { Component, Vue, Prop, Emit } from "vue-property-decorator";
import WebViewer from '@pdftron/pdfjs-express';
import configManager from "~/@managers/configManager";
import $ from 'jquery';
//#endregion

@Component({
    components :{
    }
})
export default class PdfWebViewer extends Vue {  

    $refs! : {
      viewer : HTMLDivElement,
      docIframe : HTMLIFrameElement
    }

    private async mounted() {
      
      const options = { 
        path: `/lib`,
        licenseKey : configManager.getConfig('pdfLicenseKey'),
        disabledElements: this.getElementsToDisable(),
        //isReadOnly : true
      };

      WebViewer(options, this.$refs.viewer).then((instance) => {
        
        instance.UI.disableFeatures([
          instance.Feature.Measurement, 
          instance.Feature.Ribbons, 
          instance.Feature.Annotations, 
          instance.Feature.Download, 
          instance.Feature.FilePicker, 
          instance.Feature.LocalStorage, 
          instance.Feature.NotesPanel, 
          instance.Feature.Print, 
          instance.Feature.Redaction, 
          instance.Feature.TextSelection, 
          instance.Feature.Copy, 
          instance.Feature.MultipleViewerMerging, 
          instance.Feature.ThumbnailMerging, 
          instance.Feature.ThumbnailReordering, 
          instance.Feature.Search, 
          instance.Feature.MathSymbols, 
          instance.Feature.OutlineEditing, 
          instance.Feature.NotesPanelVirtualizedList, 
          // instance.Feature.PageNavigation, 
          // instance.Feature.MouseWheelZoom, 
          instance.Feature.TouchScrollLock, 
        ]);

        // activates the hand document manipulation (zoom and move)
        instance.docViewer.setToolMode(instance.docViewer.getTool('Pan'));

        this.instance = instance;

        this.emitInit(instance);
      });
    }

```

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [January 3, 2023, 5:45pm UTC](https://pdfjs.community/t/unable-to-see-my-document-because-of-fullapi/2270/3 "2023-01-03T17:45:55Z")

</div>

Hi @julien.beduneau

Thank you for reporting this. I see you’re on version 8.2, could you update to the latest version (8.7) and see if this issue still persists?

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.

---

<div class="post-metadata">

**Author:** ![julien.beduneau](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@julien.beduneau](https://pdfjs.community/u/julien.beduneau)\
**Post date:** [January 4, 2023, 9:11am UTC](https://pdfjs.community/t/unable-to-see-my-document-because-of-fullapi/2270/4 "2023-01-04T09:11:58Z")

</div>

Yes, I tried to update to v8.7.0 and the problem is still here.

```javascript
UI version	'8.7.0'

Core version	'8.7.0'

webviewer.min.js	'8.7.0'

Build	'Ny8yMC8yMDIyfDJhMWM5ZWYwOA=='

WebViewer Server	false

Full API	false`

```

---

<div class="post-metadata">

**Author:** ![julien.beduneau](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@julien.beduneau](https://pdfjs.community/u/julien.beduneau)\
**Post date:** [January 4, 2023, 11:24am UTC](https://pdfjs.community/t/unable-to-see-my-document-because-of-fullapi/2270/5 "2023-01-04T11:24:34Z")

</div>

It seems that node version is a problem within my project, I have degraded to node 14 and it worked properly, but still, I should not have any problem with updating my dependencies and using pdfjs ?

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [January 4, 2023, 3:51pm UTC](https://pdfjs.community/t/unable-to-see-my-document-because-of-fullapi/2270/6 "2023-01-04T15:51:32Z")

</div>

So just to confirm you were using Node v16 and downgraded to v14 and there are no errors appearing?

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.

---

<div class="post-metadata">

**Author:** ![julien.beduneau](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@julien.beduneau](https://pdfjs.community/u/julien.beduneau)\
**Post date:** [January 5, 2023, 8:15am UTC](https://pdfjs.community/t/unable-to-see-my-document-because-of-fullapi/2270/9 "2023-01-05T08:15:25Z")

</div>

Yes, that’s it ! With Node 14 it worked

---

<div class="post-metadata">

**Author:** ![julien.beduneau](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@julien.beduneau](https://pdfjs.community/u/julien.beduneau)\
**Post date:** [February 21, 2023, 4:58pm UTC](https://pdfjs.community/t/unable-to-see-my-document-because-of-fullapi/2270/10 "2023-02-21T16:58:43Z")

</div>

Hi  
The issue come back.  
Can you say me which version of Node.JS I have to use with last version of PDF Viewer JS?  
Thanks by advance

---

<div class="post-metadata">

**Author:** ![julien.beduneau](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@julien.beduneau](https://pdfjs.community/u/julien.beduneau)\
**Post date:** [October 10, 2023, 5:36am UTC](https://pdfjs.community/t/unable-to-see-my-document-because-of-fullapi/2270/11 "2023-10-10T05:36:03Z")

</div>

Hello,  
I need help, it is not possible to have a copy of the instance without PDFNet error message.  
I don’t need PDFNet and I cannot use the component right now.  
I have the last version 8.7.4 with node 16 with vue.js and I get an exception when calling  
this.instance = instance; at the end of my code to get a copy of the object.

WebViewer(options, this.$refs.viewer).then((instance) =\> {

```
    instance.UI.disableFeatures([
      instance.Feature.Measurement, 
      instance.Feature.Ribbons, 
      instance.Feature.Annotations, 
      instance.Feature.Download, 
      instance.Feature.FilePicker, 
      instance.Feature.LocalStorage, 
      instance.Feature.NotesPanel, 
      instance.Feature.Print, 
      instance.Feature.Redaction, 
      instance.Feature.TextSelection, 
      instance.Feature.Copy, 
      instance.Feature.MultipleViewerMerging, 
      instance.Feature.ThumbnailMerging, 
      instance.Feature.ThumbnailReordering, 
      instance.Feature.Search, 
      instance.Feature.MathSymbols, 
      instance.Feature.OutlineEditing, 
      instance.Feature.NotesPanelVirtualizedList,
      // instance.Feature.PageNavigation, 
      // instance.Feature.MouseWheelZoom, 
      instance.Feature.TouchScrollLock, 
    ]);
    
    // activates the hand document manipulation (zoom and move)
    instance.docViewer.setToolMode(instance.docViewer.getTool('Pan'));

    this.instance = instance;

```

Please help me no way to find a. workaround

---

<div class="post-metadata">

**Author:** ![darian.chen](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@darian.chen](https://pdfjs.community/u/darian.chen)\
**Post date:** [October 10, 2023, 4:41pm UTC](https://pdfjs.community/t/unable-to-see-my-document-because-of-fullapi/2270/12 "2023-10-10T16:41:07Z")

</div>

Hello Julien,

What error messaging are you receiving? Do you have any screenshots?  
Node 16 should work with our latest version. Is the instance undefined? If so, you can retrieve it like so:  
[https://pdfjs.express/api/global.html#getInstance\_\_anchor](https://pdfjs.express/api/global.html#getInstance__anchor)

Please provide a sample project if possible.

Thank you.

---

<div class="post-metadata">

**Author:** ![julien.beduneau](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@julien.beduneau](https://pdfjs.community/u/julien.beduneau)\
**Post date:** [October 10, 2023, 8:19pm UTC](https://pdfjs.community/t/unable-to-see-my-document-because-of-fullapi/2270/13 "2023-10-10T20:19:57Z")

</div>

I try fo getInstance() but it doesn’t work  
I always get this message and the document is not loading

The message when it try getInstance(); is

Uncaught (in promise) Error: More than one instance of WebViewer was found, and no element was passed into getInstance(). Please specify which instance you want to get.  
at Function.w [as getInstance] (webviewer.min.js:1:27309)  
at eval (pdfWebViewer.vue?./node\_modules/babel-loader/lib/index.js!./node\_modules/ts-loader/index.js??clonedRuleSet-41.use%5B1%5D!./node\_modules/@vue/cli-service/node\_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options:122:98)

---

<div class="post-metadata">

**Author:** ![darian.chen](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@darian.chen](https://pdfjs.community/u/darian.chen)\
**Post date:** [October 10, 2023, 8:29pm UTC](https://pdfjs.community/t/unable-to-see-my-document-because-of-fullapi/2270/14 "2023-10-10T20:29:10Z")

</div>

Hi Julien,

Based off that error message, it looks like you have multiple instances of WebViewer. You would need to pass the DOM element containing the instance of WebViewer you want to retrieve as an argument.

```javascript
getInstance(document.getElementById('....'); // pass in the DOM element's Id

```

Best,  
Darian

---

<div class="post-metadata">

**Author:** ![julien.beduneau](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@julien.beduneau](https://pdfjs.community/u/julien.beduneau)\
**Post date:** [October 11, 2023, 10:50am UTC](https://pdfjs.community/t/unable-to-see-my-document-because-of-fullapi/2270/15 "2023-10-11T10:50:54Z")

</div>

I try to get the Viewer with the solution you give me but I always get the same error on this call

```
    this.instance = WebViewer.getInstance(document.getElementById('documentToFilViewer'));

```

The error is:

Uncaught (in promise) Error: Full version of PDFNetJS has not been loaded. Please pass the “fullAPI: true” option in your WebViewer constructor to use the PDFNet APIs.  
at Object.get (webviewer-core.min.js:2320:411)  
at Proxy.toString ()  
at isPlainObject (vue.runtime.esm.js:115:22)  
at observe (vue.runtime.esm.js:938:28)  
at defineReactive (vue.runtime.esm.js:962:31)  
at Observer (vue.runtime.esm.js:912:17)  
at observe (vue.runtime.esm.js:943:16)  
at defineReactive (vue.runtime.esm.js:962:31)  
at Observer (vue.runtime.esm.js:912:17)  
at observe (vue.runtime.esm.js:943:16)

---

<div class="post-metadata">

**Author:** ![darian.chen](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@darian.chen](https://pdfjs.community/u/darian.chen)\
**Post date:** [October 11, 2023, 5:29pm UTC](https://pdfjs.community/t/unable-to-see-my-document-because-of-fullapi/2270/16 "2023-10-11T17:29:06Z")

</div>

Hello Julien,

Could you provide a minimal sample project? The issue should still be reproducible and this will allow us to resolve the issue quicker. You can provide a download link or host it GitHub as well.

Thank you.
