-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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 to pdf on website #496
Comments
Did You Get the solution for this ? Please help me out |
I'll post more details in a bit but basically I used pdfkit and then used
svg-to-pdfkit and that worked.
I would still like to know how to get a png out.
What are you trying to do?
…On Apr 18, 2017 7:39 AM, "Sooraj" ***@***.***> wrote:
Did You Get the solution for this ? Please help me out
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#496 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABReppuyteRVXS-Z7O0QaP-pL4zHhsb3ks5rxKDYgaJpZM4MnIKE>
.
|
Using https://github.com/alafr/SVG-to-PDFKit and https://mozilla.github.io/pdf.js/ Semi-pseudo code
app.mermaid.html is a variable that contains the html of the mermaid. Basically i get the base64 pdf and save that off to a database for a revision history, I also render it using pdf.js (PDFViewerApplication). |
mgenereu
pushed a commit
to mgenereu/mermaid
that referenced
this issue
Jun 25, 2022
Bumps [cssnano](https://github.com/cssnano/cssnano) from 5.0.9 to 5.0.10. - [Release notes](https://github.com/cssnano/cssnano/releases) - [Commits](https://github.com/cssnano/cssnano/compare/cssnano@5.0.9...cssnano@5.0.10) --- updated-dependencies: - dependency-name: cssnano dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to take the diagram and put it in a pdf. Any direction would be helpful.
I think it may be easier to generate a png or jpg on the website in mermaid, is that possible? I've tried to add the svg to the pdf and haven't been successful. I've also tried to take the long route and convert the svg to canvas and then to png and that hasn't gone well.
Ive been playing with pdfKit and jsPdf. I have the basic generation of the pdf fine it just that I cant get the mermaid diagram on the pdf.
The text was updated successfully, but these errors were encountered: