Vanessa 2025-02-27 18:58:55 +08:00
parent ee9a02f904
commit 23ad4af81f

View file

@ -19,6 +19,7 @@ import { LinkTarget } from "./pdf_link_service.js";
import { PDFViewerApplication } from "./app.js";
import {Constants} from "../../constants";
import {initAnno} from "../anno";
import {AnnotationEditorType} from "./pdfjs";
/* eslint-disable-next-line no-unused-vars */
const pdfjsVersion =
@ -237,6 +238,7 @@ function webViewerLoad(file, element, pdfPage, annoId) {
AppOptions.set("defaultUrl", file);
AppOptions.set("cMapUrl", 'cmaps/');
AppOptions.set("standardFontDataUrl", 'standard_fonts/');
AppOptions.set("annotationEditorMode", AnnotationEditorType.DISABLE);
const pdf = new PDFViewerApplication(pdfPage)
pdf.annoId = annoId
const config = getViewerConfiguration(element);