lucacasonato/deno-puppeteer

pdf binary contents

Closed this issue · 3 comments

I'm trying to grab binary pdf contents.
Writing to file works fine.
In node pdf() returns Promise<Buffer>.
In deno promise always resolves to Uint8Array(2) [ 0, 0 ]
Can't get how to make work.
Any piece of advice?

Running into the same issues myself. The output of the .pdf() method will always return the same content.

Probably issue cause somewhere around this line, as of file written correctly.
I'm very new to deno and pptr, have no idea what this function should do.

resultArr = concatUint8Array(arrs);

Fixed by #31