This commit is contained in:
seb
2026-09-29 10:25:50 +02:00
parent 447033e53a
commit 88c96c94a3
12 changed files with 578 additions and 89 deletions

View File

@@ -1,6 +1,5 @@
import { pdfToPng } from 'pdfconvert-wasm';
export async function generatePdfThumbnail(pdfSource, targetWidth = 200) {
const { pdfToPng } = await import('pdfconvert-wasm');
const images = await pdfToPng(pdfSource, {
firstPage: 1,
singleFile: true,