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
<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);
});
}