[MS] Extend table support for wide tables (#1552)

* feat: enhance PDF table extraction to support complex forms and add new test cases
* feat: enhance PDF table extraction with adaptive column clustering and add comprehensive test cases
* fix: correct formatting and improve assertions in PDF table tests
This commit is contained in:
lesyk
2026-02-13 19:45:39 +01:00
committed by GitHub
parent 7fdaefb724
commit c83de14a9c
11 changed files with 784 additions and 5 deletions
@@ -0,0 +1,62 @@
BOOKING ORDER
Print Date 12/15/2024 14:30:22
Page 1 of 1
STARLIGHT CINEMAS
Orders
| Order / Rev: | 2024-12-5678 | | | Cinema: | | Downtown Multiplex |
| ------------ | -------------- | --- | --- | ---------------- | --- | ------------------ |
| Alt Order #: | SC-WINTER-2024 | | | Primary Contact: | | Sarah Johnson |
Product Desc: Holiday Movie Marathon Package Location: NYC-01
| Estimate: | EST-456 | | | Region: | | NORTHEAST |
| -------------------- | ----------------------- | --- | --- | ------- | --- | --------- |
| Booking Dates: | 12/20/2024 - 12/31/2024 | | | | | |
| Original Date / Rev: | 12/01/24 / 12/10/24 | | | | | |
| Order Type: | Premium Package | | | | | |
Booking Agency
| Name: | Premier Entertainment Group | | | | | |
| ---------------- | --------------------------- | --- | --- | -------------- | --- | --------- |
| | | | | Billing Type: | | Net 30 |
| Contact: | Michael Chen | | | | | |
| | | | | Payment Terms: | | Corporate |
| Billing Contact: | accounting@premierent.com | | | | | |
| | | | | Commission: | | 10% |
555 Broadway Suite 1200
New York, NY 10012
Customer
| Name: | Universal Studios Distribution | | | | | |
| -------------- | ------------------------------ | --- | --- | --- | --- | --- |
| Category: | Film Distributor | | | | | |
| Contact Email: | bookings@universalstudios.com | | | | | |
| Customer ID: | CUST-98765 | | | | | |
| Revenue Code: | FILM-PREMIUM | | | | | |
Booking Summary
| Start Date | End Date | # Shows | Gross Amount | Net Amount | | |
| ---------- | -------- | ------- | ------------ | ---------- | --- | --- |
| 12/20/24 | 12/31/24 | 48 | $12,500.00 | $11,250.00 | | |
Totals
| Month | # Shows | Gross Amount | | Net Amount | | Occupancy |
| ------------- | ------- | ------------ | --- | ---------- | --- | --------- |
| December 2024 | 48 | $12,500.00 | | $11,250.00 | | 85% |
| Totals | 48 | $12,500.00 | | $11,250.00 | | 85% |
Account Representatives
Representative Territory Region Start Date / End Date Commission %
| Sarah Johnson | NYC Metro | NORTHEAST | 12/20/24 - 12/31/24 | | 100% | |
| ------------- | --------- | --------- | ------------------- | --- | ---- | --- |
Show Schedule Details
Ln Screen Start End Movie Title Format Showtime Days Shows Rate Type Total
1 SCR-1 12/20/24 12/25/24 Holiday Spectacular IMAX 3D 7:00 PM Daily 12 $250 PM $3,000
(Runtime: 142 min); Holiday Season Premium
2 SCR-2 12/20/24 12/31/24 Winter Wonderland Standard 4:30 PM Daily 24 $150 MT $3,600
(Runtime: 98 min); Matinee Special
3 SCR-1 12/26/24 12/31/24 New Year Mystery 4DX 9:30 PM Daily 12 $300 PM $3,600
(Runtime: 116 min); Premium Experience
Show Details
| Show Screen | Date Range | Title | Showtime | Days Type | Rate | Revenue |
| ----------- | ---------- | ----- | -------- | --------- | ---- | ------- |
1 SCR-1 12/20-12/25 Holiday Spectacular 7:00 PM Daily PM $250 $3,000
This booking order is subject to cinema availability and standard terms.
2 SCR-2 12/20-12/31 Winter Wonderland 4:30 PM Daily MT $150 $3,600
All showtimes are approximate and subject to change.
3 SCR-1 12/26-12/31 New Year Mystery 9:30 PM Daily PM $300 $3,600
| Total Revenue: | | | | | | $12,500.00 |
| -------------- | --- | --- | --- | --- | --- | ---------- |