try without custom fonts
This commit is contained in:
parent
90c7346424
commit
22bc7bb644
@ -13,7 +13,6 @@ import { asList } from '../utils/functions';
|
|||||||
import { TranslateService } from '@ngx-translate/core';
|
import { TranslateService } from '@ngx-translate/core';
|
||||||
import { LicenseService } from '@services/license.service';
|
import { LicenseService } from '@services/license.service';
|
||||||
import { UserPreferenceService } from '@users/user-preference.service';
|
import { UserPreferenceService } from '@users/user-preference.service';
|
||||||
import { environment } from '@environments/environment';
|
|
||||||
import TextTool = Core.Tools.TextTool;
|
import TextTool = Core.Tools.TextTool;
|
||||||
import Annotation = Core.Annotations.Annotation;
|
import Annotation = Core.Annotations.Annotation;
|
||||||
import TextHighlightAnnotation = Core.Annotations.TextHighlightAnnotation;
|
import TextHighlightAnnotation = Core.Annotations.TextHighlightAnnotation;
|
||||||
@ -150,9 +149,9 @@ export class PdfViewer {
|
|||||||
async init(htmlElement: HTMLElement) {
|
async init(htmlElement: HTMLElement) {
|
||||||
this.#instance = await this.#getInstance(htmlElement);
|
this.#instance = await this.#getInstance(htmlElement);
|
||||||
|
|
||||||
if (environment.production) {
|
// if (environment.production) {
|
||||||
this.#instance.Core.setCustomFontURL('https://' + window.location.host + this._convertPath('/assets/pdftron'));
|
// this.#instance.Core.setCustomFontURL('http://' + window.location.host + this._convertPath('/assets/pdftron'));
|
||||||
}
|
// }
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await this.PDFNet.initialize(this._licenseService.activeLicenseKey);
|
await this.PDFNet.initialize(this._licenseService.activeLicenseKey);
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "redaction",
|
"name": "redaction",
|
||||||
"version": "3.988.67",
|
"version": "3.988.68",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user