We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
createIsomorphicCanvasFactory
1 parent c571170 commit 0a5608fCopy full SHA for 0a5608f
src/image.ts
@@ -168,7 +168,7 @@ export async function renderPageAsImage(
168
return await response.arrayBuffer()
169
}
170
171
-async function createIsomorphicCanvasFactory(
+export async function createIsomorphicCanvasFactory(
172
canvasImport?: () => Promise<typeof import('@napi-rs/canvas')>,
173
) {
174
if (isBrowser)
src/index.ts
@@ -5,6 +5,7 @@ import { extractText as _extractText } from './text'
5
import { resolvePDFJSImport } from './utils'
6
7
export { configureUnPDF, definePDFJSModule } from './config'
8
+export { createIsomorphicCanvasFactory } from './image'
9
10
export {
11
getDocumentProxy,
0 commit comments