Skip to content

Commit c65da79

Browse files
committed
Updated puppeteer pdf usage.
1 parent c8980f9 commit c65da79

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/doxdox-renderer-pdf/eslint.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ export default [
1111
{
1212
files: ['**/*.ts', '**/*.js'],
1313
languageOptions: {
14-
parser: typescriptParser
14+
parser: typescriptParser,
15+
globals: {
16+
Buffer: 'readonly'
17+
}
1518
},
1619
plugins: {
1720
typescriptPlugin: typescriptPlugin

packages/doxdox-renderer-pdf/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,5 +179,5 @@ export default async (doc: Doc): Promise<Buffer> => {
179179

180180
await browser.close();
181181

182-
return pdf;
182+
return Buffer.from(pdf.buffer);
183183
};

0 commit comments

Comments
 (0)