-
Notifications
You must be signed in to change notification settings - Fork 374
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
Added feature to export as PDF #456
Added feature to export as PDF #456
Conversation
Thank you for the PR, can you give us some comparison on why you think |
Hello , sorry for the poor level of information attached to the PR. At the moment jspdf to me looks the solution which better fits the already written code, giving also the support to get the "blob" Thanks for your feedback, |
Hmm, that's actually not a bad reason, this will have consistency for the whole app because printing may be different between web and electron version. I'll ask @Rokt33r for his thought on this |
Great work! I'll review this tonight. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exporting as PDF doesn't work well. It doesn't keep css style.
Thanks for the feedback, the pdf exported style is the same as the html one. So it should be corrected even this one right ? |
@billyLumberjack Jspdf seems to apply styles in the html. But styles for code fences and math blocks are from external css file. Please check those blocks are styled properly in a exported pdf file. |
@billyLumberjack can you fix the conflict please? |
@billyLumberjack ping! |
I'm going to take over this task |
Hello, actually jspdf is not including the style, I am trying with html2canvas but getting |
@billyLumberjack I'm going to do this later. If you want to continue trying, please try it! I'll let you know when I can actually start working on this. |
Can you not simply use the electron native method for this: Then you can avoid an extra 3rd party dependency. |
This will be resolved in #652 |
IssueHunt Summary
Referenced issues
This pull request has been submitted to: