PDF.js Express Version
7.1.1
Detailed description of issue
The page freeze when loading the document or when scrolling in the document.
For information, I using VueJs with TypeScript. For try to understand the problem, I just load the document with the parameter initialDoc in the WebViewer component.
I think there is a memory leak in the library because I get an abnormal cpu load when the page freezes.
Have you ever had this problem?
Expected behaviour
An application that works without slowing down.
Link to document
Code snippet
import WebViewer from '@pdftron/pdfjs-express';
import {Prop, Vue} from "vue-property-decorator";
import Component from "vue-class-component";
@Component
export default class Viewer extends Vue {
@Prop(String)
private path!: string;
@Prop(String)
private url!: string;
@Prop(Boolean)
private readOnly!: boolean;
mounted(): void {
WebViewer({
path: this.path,
initialDoc: this.url,
extension: 'pdf',
disabledElements: ['printButton', 'printModal', 'downloadButton'],
isReadOnly: this.readOnly
}, this.$refs.viewer).then((instance) => {
});
}
}