u
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user