Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added src for pdfjs worker #46

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

Q1w1N
Copy link
Collaborator

@Q1w1N Q1w1N commented Jan 9, 2025

Summary

adds src for pdfjs worker

Test plan

tested with pnpm link

@@ -4,6 +4,8 @@ import { orderBy } from 'lodash';
import { getLinkBoundingBoxes, PdfLinkBoundingBox } from './links.js';
import { boundingBoxesOverlap, expandBoundingBox } from './bounding-box.js';

pdfjs.GlobalWorkerOptions.workerSrc = require.resolve('pdfjs-dist/build/pdf.worker.min.js');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add code comments explaining what is this doing. Link to sources if you have any.

@mdjastrzebski mdjastrzebski merged commit 4763c6d into main Jan 9, 2025
2 checks passed
@mdjastrzebski mdjastrzebski deleted the fix/document-loaders/pdfjs-worker branch January 9, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants