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

export as PDF file #21

Open
kevinkovadia opened this issue Jun 12, 2020 · 3 comments
Open

export as PDF file #21

kevinkovadia opened this issue Jun 12, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@kevinkovadia
Copy link

kevinkovadia commented Jun 12, 2020

this is very useful to create a demo website for the client. Is it possible to export the saved webpage as a PDF file? I can see that this has an ability to replace google docs or any other online word processor.

@youknowriad youknowriad added the enhancement New feature or request label Jun 12, 2020
@youknowriad
Copy link
Owner

I think that should be possible. Browsers have built-in features to print as PDF but we can explore an export button.

@epiqueras
Copy link
Collaborator

We'll need to tweak styles so that it renders correctly. It's usually almost impossible to do right.

I think what most apps end up doing is rendering the HTML in the background and screenshotting it. E.g., https://www.npmjs.com/package/react-to-pdf.

@senadir
Copy link
Collaborator

senadir commented Jun 13, 2020

PDF export is something that I'm working on as well, there are some possible options, the best option I can find is to send the HTML (and styles) to a serverless function running something like wkhtmltopdf, for a frontend solution, you'd redirect the user to a page showing only the content (so /read) and trigger the print event.

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

No branches or pull requests

4 participants