Skip to content

Commit

Permalink
fix: fallback to pdf image conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Dec 25, 2024
1 parent 757697b commit ee0d11c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/lib/parser/PrepareDeck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@ export async function PrepareDeck(
name: `${file.name}.html`,
contents: convertedContents,
});
} else if (isPDFFile(file.name)) {
const convertedContents = await convertPDFToImages({
name: file.name,
workspace: input.workspace,
noLimits: input.noLimits,
contents: file.contents,
});
convertedFiles.push({
name: `${file.name}.html`,
contents: convertedContents,
});
}
}

Expand Down

0 comments on commit ee0d11c

Please sign in to comment.