Skip to content

Commit

Permalink
fix remote pdf page number logic
Browse files Browse the repository at this point in the history
  • Loading branch information
do-me committed Aug 29, 2024
1 parent 2c480e1 commit 9f4ca94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ export async function handleRemotePdfFileUpload() {

try {
const dataUri = await fetchPdfAsDataUri(url);
const text = await extractTextFromPDF(url, null);
const text = await extractTextFromPDF(dataUri, null);
texts.push(text);
} catch (error) {
console.error('Error handling remote PDF file upload:', error);
Expand All @@ -572,7 +572,7 @@ export async function handleMultipleRemotePdfFileUploads() {

try {
const dataUri = await fetchPdfAsDataUri(url);
const text = await extractTextFromPDF(url, null);
const text = await extractTextFromPDF(dataUri, null);
results.push(text);
} catch (error) {
console.error(`Error handling remote PDF file upload for URL ${url}:`, error);
Expand Down

0 comments on commit 9f4ca94

Please sign in to comment.