mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-13 19:42:38 +05:30
added css path to form-pdf
This commit is contained in:
parent
17b764d1f3
commit
20e91af6f0
2 changed files with 2 additions and 2 deletions
|
|
@ -1,8 +1,6 @@
|
||||||
import { createRoot } from 'react-dom/client';
|
import { createRoot } from 'react-dom/client';
|
||||||
import 'tailwindcss/tailwind.css';
|
import 'tailwindcss/tailwind.css';
|
||||||
import App from 'components/App';
|
import App from 'components/App';
|
||||||
import 'react-pdf/dist/esm/Page/TextLayer.css';
|
|
||||||
import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
|
|
||||||
|
|
||||||
const container = document.getElementById('root') as HTMLDivElement;
|
const container = document.getElementById('root') as HTMLDivElement;
|
||||||
const root = createRoot(container);
|
const root = createRoot(container);
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@ import { Box, Paper, Typography, Button } from '@mui/material';
|
||||||
import { Document, Page, pdfjs } from 'react-pdf';
|
import { Document, Page, pdfjs } from 'react-pdf';
|
||||||
import { Rnd } from 'react-rnd';
|
import { Rnd } from 'react-rnd';
|
||||||
import { PDFDocument, rgb, StandardFonts } from 'pdf-lib';
|
import { PDFDocument, rgb, StandardFonts } from 'pdf-lib';
|
||||||
|
import 'react-pdf/dist/esm/Page/TextLayer.css';
|
||||||
|
import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
|
||||||
|
|
||||||
pdfjs.GlobalWorkerOptions.workerSrc =
|
pdfjs.GlobalWorkerOptions.workerSrc =
|
||||||
'//cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js';
|
'//cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue