@cle-does-things/pdfitdown-wasm
v4.2.0
Published
Convert (almost) anything to PDF — WASM build for browsers
Maintainers
Readme
@cle-does-things/pdfitdown-wasm
Package containing WASM bindings for PdfItDown.
Example usage:
<script type="module">
import init, {
convert,
} from "https://unpkg.com/@cle-does-things/[email protected]/pkg/pdfitdown_wasm.js";
await init(
"https://unpkg.com/@cle-does-things/[email protected]/pkg/pdfitdown_wasm_bg.wasm",
);
const fileInput = document.querySelector('input');
fileInput.addEventListener('change', async (e) => {
const bytes = new Uint8Array(await e.target.files[0].arrayBuffer());
const result = convert(bytes);
console.log('output bytes:', result);
});
</script>
<input type="file" />