Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Q1w1N committed Jan 9, 2025
1 parent 2098996 commit 2a0174b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/document-loaders/src/utils/pdf/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { orderBy } from 'lodash';
import { getLinkBoundingBoxes, PdfLinkBoundingBox } from './links.js';
import { boundingBoxesOverlap, expandBoundingBox } from './bounding-box.js';

// Makes parser available in bundle when document-loaders are used as dependency
pdfjs.GlobalWorkerOptions.workerSrc = require.resolve('pdfjs-dist/build/pdf.worker.min.js');

export async function loadPdfContentFromBuffer(buffer: ArrayBuffer): Promise<string> {
Expand Down

0 comments on commit 2a0174b

Please sign in to comment.