Preserving Excel cell styles (colors, fonts, alignment) in extraction output #481
Replies: 2 comments 2 replies
-
|
Thank you for this topic. I made an issue from it -- I think its a fine request, and there is no issue adding this in the future. i cant commit to when, but i think it will not be too long. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hey! first of all, great library, the rust core makes it blazing fast
I'm using Kreuzberg to extract content from .xlsx files and feed the result to an AI agent/LLM for processing. The issue I'm running into is that the extracted output (both with the default markdown and with output_format='html' contains only the raw cell values, all styling information is stripped:
For my use case this is a problem because the styling carries semantic meaning (e.g. red rows = critical items, green = approved, bold headers, color-coded categories). When the LLM receives plain markdown tables, it loses that context entirely
Here's what I tested:
I also noticed the docs mention "cell metadata" as a capability for spreadsheets. Is there a way to access this metadata (styles, colors, formatting) through the current API that I might be missing?
Ideally, I'd love one of these:
Currently I'm falling back to
openpyxlto read the style objects and build styled HTML manually, but I'd prefer to keep Kreuzberg as the single extraction layer if possible.Thanks for any guidance!
Beta Was this translation helpful? Give feedback.
All reactions