AbsorbedTable rectangle ignores borderless table's empty rows and columns

Hello,

I’m implementing functionality which extracts table from the provided PDF document and saves the table as an image. Below you can find the code snippet:

    Page page = doc.getPages().get_Item(1);
    TableAbsorber absorber = new TableAbsorber();
    absorber.setUseFlowEngine(true);
    absorber.visit(page);
    AbsorbedTable table = absorber.getTableList().get(0);

    page.setCropBox(table.getRectangle());

    JpegDevice renderer = new JpegDevice();
    renderer.process(page, filePath);

The problem occurs when table has no borders and first and/or last row/column contains no data. For example:
table.pdf (17.1 KB)

In this case table’s rectangle returns table size without empty rows and columns therefore when I crop the PDF document to the table’s rectangle - it does not include whole table:
result.png (6.5 KB)

Aspose.PDF version: 24.6

@pdargis

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-57560

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.