is there any way we can edit the existing data of the pdf using lexical ?? #8746
Krush-aiden
started this conversation in
General
Replies: 1 comment
-
|
Anything is possible with enough code. lexical doesn’t have a layout engine, it’s all just html and css, and you have a lot of control over that especially with the new DOMRenderExtension. If you can figure out how to model the layout in html you just need to apply the same rules to how the nodes render. tables work fine. lexical doesn’t ship with any code to deal with pdf or docx in either direction, but that’s just a matter of writing the code to do the import and export. Should be fairly straightforward. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Feasibility Advice: Building a text/table PDF editor with Lexical (Coordinate-mapping vs. Reflowable layout)
Hello Lexical Team and Community,
I am evaluating rich-text frameworks to build a web-based PDF Editor. The target PDF documents are structurally simple, containing only standard text paragraphs and data tables—no complex designs or vector graphics.
I want to see if Lexical is the right tool for this architecture, specifically regarding how it handles document layouts and data conversion.
The Proposed Workflow:
The Main Architectural Dilemma:
PDFs are inherently static and coordinate-based, whereas Lexical is designed as a flowable, tree-based rich text engine (similar to Word or Google Docs). I am trying to determine the best approach within Lexical's ecosystem:
Questions for the Maintainers & Community:
Any insights, architectural warnings, or examples of similar implementations would be incredibly helpful! Thank you.
Beta Was this translation helpful? Give feedback.
All reactions