Tables in markdowns are getting skewed #487

Open
opened 2026-02-16 00:17:59 -05:00 by yindo · 3 comments
Owner

Originally created by @sowmyad on GitHub (Jun 19, 2025).

We are using llama-cloud with starter plan and wanted to explore PDF to markdown conversion for our GenAI usecase.

The PDFs that we use have heavy and complex tables and we noticed that llama-cloud is not able to convert the complex tables successfully in ALL cases. In some cases, it does. But for our use case, we will need conversion to be very high quality with 0 data loss.

Images can be ignored (and we don't need it). I am attaching some PDFs for reference. Several tables where there are colspans and rowspans, tables without headers are getting skewed.

Currently, we see that some pages and sections are getting skipped. To begin with look at how markdown is generated for RJTT. (AD 2.12).

AD 2-LFBO Characteristics.pdf
AD 2-LFPG Characteristics.pdf
AD 2-ZBAD Characteristics AMDB specific.pdf
RJTT AD 2 - Characteristics AMDB Specific.pdf

Originally created by @sowmyad on GitHub (Jun 19, 2025). We are using llama-cloud with starter plan and wanted to explore PDF to markdown conversion for our GenAI usecase. The PDFs that we use have heavy and complex tables and we noticed that llama-cloud is not able to convert the complex tables successfully in ALL cases. In some cases, it does. But for our use case, we will need conversion to be very high quality with 0 data loss. Images can be ignored (and we don't need it). I am attaching some PDFs for reference. Several tables where there are colspans and rowspans, tables without headers are getting skewed. Currently, we see that some pages and sections are getting skipped. To begin with look at how markdown is generated for RJTT. (AD 2.12). [AD 2-LFBO Characteristics.pdf](https://github.com/user-attachments/files/20809878/AD.2-LFBO.Characteristics.pdf) [AD 2-LFPG Characteristics.pdf](https://github.com/user-attachments/files/20809881/AD.2-LFPG.Characteristics.pdf) [AD 2-ZBAD Characteristics AMDB specific.pdf](https://github.com/user-attachments/files/20809880/AD.2-ZBAD.Characteristics.AMDB.specific.pdf) [RJTT AD 2 - Characteristics AMDB Specific.pdf](https://github.com/user-attachments/files/20809879/RJTT.AD.2.-.Characteristics.AMDB.Specific.pdf)
Author
Owner

@hexapode commented on GitHub (Jun 19, 2025):

Thanks for reporting, having a look at them

@hexapode commented on GitHub (Jun 19, 2025): Thanks for reporting, having a look at them
Author
Owner

@sowmyad commented on GitHub (Jun 19, 2025):

RJTT_39.pdf

This page has one good example where the table was completely skewed in markdown. (It is one of the page from earlier uploaded PDF). Tried converting PDF -> DOCX file and uploaded DOCX file to llama-cloud as well, just to see the performance. The table was still skewed.

@sowmyad commented on GitHub (Jun 19, 2025): [RJTT_39.pdf](https://github.com/user-attachments/files/20814271/RJTT_39.pdf) This page has one good example where the table was completely skewed in markdown. (It is one of the page from earlier uploaded PDF). Tried converting PDF -> DOCX file and uploaded DOCX file to llama-cloud as well, just to see the performance. The table was still skewed.
Author
Owner

@sowmyad commented on GitHub (Jul 3, 2025):

Hi,
Wanted to check if there is an update on this issue?

@sowmyad commented on GitHub (Jul 3, 2025): Hi, Wanted to check if there is an update on this issue?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_cloud_services#487