# How to read multiple lines from PDF File

**URL:** <https://forum.knime.com/t/how-to-read-multiple-lines-from-pdf-file/46510>\
**Category:** KNIME Analytics Platform\
**Created:** [August 29, 2022, 1:55am UTC](https://forum.knime.com/t/how-to-read-multiple-lines-from-pdf-file/46510 "2022-08-29T01:55:51Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [August 30, 2022, 4:02pm UTC](https://forum.knime.com/t/how-to-read-multiple-lines-from-pdf-file/46510/6 "2022-08-30T16:02:06Z")

</div>

@Subramanyam you could try and use the [R package pdftools](https://www.r-bloggers.com/2021/06/extract-text-from-pdf-in-r-and-word-detection/) to extract the text. It will also extract the content of the table but there might be better ways to deal with them as we already have discussed - [Solutions to "Just KNIME It!" Challenge 15](https://forum.knime.com/t/solutions-to-just-knime-it-challenge-15/42482), [Extract Table from PDF with the help of R "tabulizer" and KNIME – KNIME Community Hub](https://kni.me/w/3YMQ5EiC7ojFR7AZ)).

Every page will be in a table row so you might take it from there and start splitting and manipulating the header in order to get your information.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/7/5/7561226d118bf15174169429dd6514d5b78c6d99.png)

> **[use R and KNIME to extract text from PDF file - search for page where text...](https://hub.knime.com/mlauber71/spaces/Public/kn_example_r_pdf_read_text~NCmYaa3cn4lEHyUR/current-state)**
>
> use R and KNIME to extract text from PDF file - search for page where text appears

[kn\_example\_r\_pdf\_read\_text.knwf](https://forum.knime.com/uploads/short-url/oR0TgYDfOAGwyBeyf65UJ1iHSsu.knwf) (95.6 KB)

Then I would agree with what @ScottF says. It is difficult to follow what you want to do and at which point the community might be able to help. BTW you can enclose data within the node (preferably in the subfolder /data/) so you can have a complete example that other people might be able to run.

* * *

Edit: [KNIME — Extract Text and Tables from PDF Files with Python in a Low-Code Environment | by Markus Lauber | Low Code for Data Science | Medium](https://medium.com/low-code-for-advanced-data-science/knime-extract-text-and-tables-from-pdf-files-with-python-in-a-low-code-environment-e2949a95e3fc)

---

_[View the full topic](https://forum.knime.com/t/how-to-read-multiple-lines-from-pdf-file/46510)._
