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

Error when rendering html to pdf using renderthis::to_pdf() #316

Open
liezeltamon opened this issue Sep 29, 2024 · 2 comments
Open

Error when rendering html to pdf using renderthis::to_pdf() #316

liezeltamon opened this issue Sep 29, 2024 · 2 comments

Comments

@liezeltamon
Copy link
Collaborator

liezeltamon commented Sep 29, 2024

renderthis::to_pdf("index.cluster.html", "index.cluster.pdf")
✖ Rendering index.cluster.html into index.cluster.pdf ... failed
Error in force(expr) :
Failed to generate output. Reason: Failed to open http://127.0.0.1:7116/favicon.ico (HTTP status code: 404)

Refer to jhelvy/renderthis#77

Temporary fix is to add this in the <head> section of html file:
<link rel="shortcut icon" href="#" />

@liezeltamon
Copy link
Collaborator Author

liezeltamon commented Oct 9, 2024

@kevinrue

pagedown could be an alternative to renderthis but it still needs that temporary fix above because the function works the same way as renderthis::to_pdf()

pagedown::chrome_print("index.cluster.html", "index.cluster.pdf")

@kevinrue
Copy link
Owner

kevinrue commented Oct 9, 2024

Oh cool. I've used pagedown before but not in a while

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

No branches or pull requests

2 participants