# Extract data from PDF invoice

**URL:** <https://forum.knime.com/t/extract-data-from-pdf-invoice/38492>\
**Category:** KNIME Analytics Platform\
**Created:** [December 29, 2021, 11:42am UTC](https://forum.knime.com/t/extract-data-from-pdf-invoice/38492 "2021-12-29T11:42:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [December 29, 2021, 1:57pm UTC](https://forum.knime.com/t/extract-data-from-pdf-invoice/38492/2 "2021-12-29T13:57:36Z")

</div>

@lavvenkatesh welcome to the KNIME forum. That is possible with the help of [R](https://docs.knime.com/latest/r_installation_guide/index.html#_introduction) and the package “[docxtractr](https://gitlab.com/hrbrmstr/docxtractr)” like in this workflow using your example (two others are [1](https://kni.me/w/-3NdPHGFE2QdYIdA) | [2](https://kni.me/w/kI1MJ67HG-SqtU7-)):

> **[Read tables from Word documents (.docx) and import them into KNIME – mlauber71](https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_r_docx_import_table3~1BZOIHMqKD9rEvPP)**
>
> usage of R package docxtractr to import tables from a Word document In this example we have a changing table structure which is captured in single KNIME tables…

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/a/2/a21dd244f3b8f40619e380fc09679d61c9a9c649.png)

The content from your example is split into separate tables and then exported to KNIME tables or Excel sheets:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/2/f/2f29d5e27c39895706015d73f6d1f27f7011381d.png)

You might have to come up with the further handling of the data. Separate columns are added to indicate where the table came from. If your invoices always have the same structure you could always use the 3rd table or you could identify the tables by column names. All .DOCX files that you would place in the /data/\_docx/ folder will be scanned and imported.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/b/a/bae6678cd51224f32eb1d76561de2eef1a122798.png)

Admittedly this approach might not be totally intuitive, but once you have familiarised yourself with some [R and KNIME](https://kni.me/w/tj5tS_6gYvqOSPlk) you gain a very powerful tool.

---

_[View the full topic](https://forum.knime.com/t/extract-data-from-pdf-invoice/38492)._
