Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use option for connect to remote chrome instance or local instance #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nekooei
Copy link

@nekooei nekooei commented Sep 12, 2022

by this contribution, you can connect to remote chrome(browser) instance

example usage:
const options = {
useRemoteChrome: true,
chromeRemoteWs: 'ws://localhost:3000',
format: 'A4',
printBackground: true,
};
const pdfBuffer = await html_to_pdf.generatePdf(fc, options))

@nekooei
Copy link
Author

nekooei commented Jan 20, 2023

@mrafiqk is there any problem for review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant