Skip to content

Commit

Permalink
fix: unexpected pdf text layer rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
chershentan committed May 17, 2024
1 parent fba2686 commit dfd22e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/renderer/PdfRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { FunctionComponent, useState } from "react";
import { Document, Page, pdfjs } from "react-pdf";
import { repeat } from "../../utils";
import { Renderer } from "../../types";
import "react-pdf/dist/Page/TextLayer.css";

// TODO check this https://github.com/wojtekmaj/react-pdf#browserify-and-others
pdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`;
Expand Down

0 comments on commit dfd22e9

Please sign in to comment.