Skip to content

Commit

Permalink
Merge pull request #185 from pat721/BF-react-pdf-text-and-annotationl…
Browse files Browse the repository at this point in the history
…ayer

Fix: Missing text and annotationlayer imports for React-PDF
  • Loading branch information
cyntler authored Oct 19, 2023
2 parents a9dbf51 + 46f2bb2 commit bf7489d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderers/pdf/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`;

Expand Down

0 comments on commit bf7489d

Please sign in to comment.