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

Saving as PDF not working #1

Open
uint16 opened this issue Jul 21, 2020 · 4 comments
Open

Saving as PDF not working #1

uint16 opened this issue Jul 21, 2020 · 4 comments

Comments

@uint16
Copy link

uint16 commented Jul 21, 2020

Hi,

The library seems to be doing exactly what d3-save-svg, it doesn't export to pdf and there's lacking example of it doing that. Am I missing something?

@chipimix
Copy link

Hi,
I have the exact same issue; this library exports svgs instead of pdfs!
I'm using it on electron in windows.

@uint16
Copy link
Author

uint16 commented Sep 26, 2020

Hi,
I have the exact same issue; this library exports svgs instead of pdfs!
I'm using it on electron in windows.

I found pdfmake to do the job for me.

@sudoroot-admin
Copy link

sudoroot-admin commented Aug 26, 2021

Hi,
I have the exact same issue; this library exports svgs instead of pdfs!
I'm using it on electron in windows.

I found pdfmake to do the job for me.

I am struggling with d3-save-svg and pdfmake. Can you please tell something more about how you've get it working?

  • did you include the whole pdfmake project into your project?
  • do you create a svg from the d3-chart with d3-save-pdf and save this with pdfmake as pdf?

Thanks in advance!

@chipimix
Copy link

Hi!
Unfortunately I ended up using electron's exportWindow.webContents.print(); instead. Sorry :(

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

3 participants