-
Notifications
You must be signed in to change notification settings - Fork 510
♻️(front) improve table pdf rendering #639
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
Conversation
65a3137 to
779e3c9
Compare
|
Wow, this is cool ! |
AntoLC
left a comment
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.
It's cool ^^
Let's see this yarn.lock and let's go 🚀
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.
I got lot of diff when I try the branch. I think the yarn.lock is not totally updated (rebase ?)
src/frontend/apps/impress/src/features/docs/doc-header/components/ModalExport.tsx
Outdated
Show resolved
Hide resolved
| <TH key={index}> | ||
| {row.cells.map((cell, index) => { | ||
| return ( | ||
| <TD key={index}> |
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.
|
It could be nice to have it integrated by default in Blocknotes wdyt @YousefED ? |
779e3c9 to
056fca9
Compare
Cool! Great to see this. I'd be happy to add this to react-pdf. @NathanVss are you able to do this? Otherwise we add it to our todos I see two ways: |
AntoLC
left a comment
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.
Nice improvement ^^
The previous way of rendering table was causing issues when tables could not fit on one page. I then came accross this discussion diegomura/react-pdf#2343. The author created a lib to improve the rendering of table, it's better, but still not perfect maybe.
f52d279 to
9a5852d
Compare
|
@NathanVss I was wrong in standup, react-pdf depends on pdfkit, not pdfjs For pdfkit, this issue is in progress: foliojs/pdfkit#1577 Once that lands it should be possible to add it to react-pdf and then to blocknote / docs |

Purpose
The previous way of rendering table was causing issues when tables could not fit on one page. I then came accross this discussion diegomura/react-pdf#2343. The author created a lib to improve the rendering of table, it's better, but still not perfect maybe.
Proposal
The Doc
Before
After