@bdfkit/convert-pdf-epub
v0.1.8
Published
TinyGo Wasm converter preset for PDF and EPUB
Readme
@bdfkit/convert-pdf-epub
Browser converter preset for PDF and EPUB files. It bundles the TinyGo WebAssembly runtime, so consumers only need Node/npm and their frontend bundler.
npm install @bdfkit/convert-pdf-epubimport { createPdfEpubConverter } from "@bdfkit/convert-pdf-epub";
const converter = createPdfEpubConverter();
const result = await converter.convert(bytes, { name: "book.epub" });Use it with Viewer.openFile from @bdfkit/viewer, or use the converter directly when the application owns the document surface. See the frontend integration guide.
License
MIT. See LICENSE.
