diff --git a/src/renderers/pdf/index.tsx b/src/renderers/pdf/index.tsx index 9ab7130e..0ad5bf5f 100644 --- a/src/renderers/pdf/index.tsx +++ b/src/renderers/pdf/index.tsx @@ -5,6 +5,8 @@ import { DocRenderer, IStyledProps } from "../.."; import PDFPages from "./components/pages/PDFPages"; import PDFControls from "./components/PDFControls"; import { PDFProvider } from "./state"; +import "react-pdf/dist/esm/Page/AnnotationLayer.css"; +import "react-pdf/dist/esm/Page/TextLayer.css"; pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.js`;