|
|
@@ -2,7 +2,7 @@ import React, { useEffect, useRef, useState } from 'react'; |
|
|
|
import { Button, Grid } from '@mui/material'; |
|
|
|
import { GeneralConfirmWindow, notifySaveSuccess } from "../../../utils/CommonFunction"; |
|
|
|
import axios from 'axios'; |
|
|
|
import {apiPath} from "../../../auth/utils"; |
|
|
|
import {apiPath, appURL} from "../../../auth/utils"; |
|
|
|
import { |
|
|
|
GET_PDF_TEMPLATE_PATH, |
|
|
|
GET_PDF_PATH, |
|
|
@@ -107,7 +107,7 @@ function PDF() { |
|
|
|
// container: '#viewer', |
|
|
|
document: pdfUrl, |
|
|
|
// baseUrl: `./sdk/`, // Path to SDK assets |
|
|
|
baseUrl: `http://localhost:3000/sdk/`, // Path to SDK |
|
|
|
baseUrl: `${appURL}/sdk/`, // Path to SDK |
|
|
|
// baseUrl: `${window.location.protocol}//${window.location.host}/${import.meta.env.BASE_URL}`, |
|
|
|
// baseUrl: `https://cdn.jsdelivr.net/npm/pspdfkit@VERSION/dist/`, // Path to SDK assets so this is work? |
|
|
|
// baseUrl: `${process.env.PUBLIC_URL}/`, // Path to SDK assets |
|
|
|