Back to blog
documentation

JSON

The data from the pipeline returns as is.

All examples work with the next PDF structure

--- PDF start ---

Table1 Row1 Cell1 Table1 Row1 Cell2
Table1 Row2 Cell1 Table1 Row2 Cell2
Table2 Row1 Cell1 Table2 Row1 Cell2
Table2 Row2 Cell1 Table2 Row2 Cell2

--- PDF end ---

Examples

Return all tables from document

select(tables) // PdfTable[]

Will produce the next output

[
  [
   [
    "Table1 Row1 Cell1",
    "Table1 Row1 Cell2"
   ],
   [
    "Table1 Row2 Cell1",
    "Table1 Row2 Cell2"
   ]
  ],
  [
   [
    "Table2 Row1 Cell1",
    "Table2 Row1 Cell1"
   ],
   [
    "Table2 Row2 Cell1",
    "Table2 Row2 Cell2"
   ]
  ]
]