try without custom fonts

This commit is contained in:
Dan Percic 2023-06-23 20:41:26 +03:00
parent 90c7346424
commit 22bc7bb644
2 changed files with 4 additions and 5 deletions

View File

@ -13,7 +13,6 @@ import { asList } from '../utils/functions';
import { TranslateService } from '@ngx-translate/core';
import { LicenseService } from '@services/license.service';
import { UserPreferenceService } from '@users/user-preference.service';
import { environment } from '@environments/environment';
import TextTool = Core.Tools.TextTool;
import Annotation = Core.Annotations.Annotation;
import TextHighlightAnnotation = Core.Annotations.TextHighlightAnnotation;
@ -150,9 +149,9 @@ export class PdfViewer {
async init(htmlElement: HTMLElement) {
this.#instance = await this.#getInstance(htmlElement);
if (environment.production) {
this.#instance.Core.setCustomFontURL('https://' + window.location.host + this._convertPath('/assets/pdftron'));
}
// if (environment.production) {
// this.#instance.Core.setCustomFontURL('http://' + window.location.host + this._convertPath('/assets/pdftron'));
// }
try {
await this.PDFNet.initialize(this._licenseService.activeLicenseKey);

View File

@ -1,6 +1,6 @@
{
"name": "redaction",
"version": "3.988.67",
"version": "3.988.68",
"private": true,
"license": "MIT",
"scripts": {