# PDF parser

**URL:** <https://forum.knime.com/t/pdf-parser/6406>\
**Category:** KNIME Extensions\
**Tags:** text-processing\
**Created:** [August 6, 2014, 11:25am UTC](https://forum.knime.com/t/pdf-parser/6406 "2014-08-06T11:25:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SridharVenu](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/9dc877/32.png) [@SridharVenu](https://forum.knime.com/u/SridharVenu)\
**Post date:** [August 6, 2014, 11:25am UTC](https://forum.knime.com/t/pdf-parser/6406/1 "2014-08-06T11:25:14Z")

</div>

Dear&nbsp;Kilian:

The PDF parser like word parser takes the first sentence to be the title of the document automatically. This sometimes results in very long sentences which exist in the original pdf document or even the entire document as a document cell. &nbsp;You will understand what kind of pain it could be to have a document cell with entire pdf document of 10 to 15 pages in one cell.

I am not sure if others have experienced this. &nbsp;I could provide an example, if required.

Cheers.

---

<div class="post-metadata">

**Author:** ![kilian.thiel](https://forum-cdn.knime.com/user_avatar/forum.knime.com/kilian.thiel/32/5449_2.png) [@kilian.thiel](https://forum.knime.com/u/kilian.thiel)\
**Post date:** [August 7, 2014, 9:42am UTC](https://forum.knime.com/t/pdf-parser/6406/2 "2014-08-07T09:42:01Z")

</div>

Hi Sridhar,

i definitely see your point here. This issue is already on the todo list and now just got +1. What do you suggest to choose as title alternatively? In the node dialog the user could choose between first sentence or file name for example. Any other suggestions?

Cheers, Kilian

---

<div class="post-metadata">

**Author:** ![SridharVenu](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/9dc877/32.png) [@SridharVenu](https://forum.knime.com/u/SridharVenu)\
**Post date:** [August 7, 2014, 10:23am UTC](https://forum.knime.com/t/pdf-parser/6406/3 "2014-08-07T10:23:12Z")

</div>

Dear Kilian:

Happy to know that KNIME will work towards correcting this. &nbsp;My simple response to your query is anything would be better than a long string of the first sentence. &nbsp;Coming from a 400+ character experience, I am aware that I am biased.

File name is an excellent option - we could get back to good old names of naming conventions limited to 8 characters, etc. etc. &nbsp;

In Zotero, the metadata is automatically captured in to the citation database. &nbsp;I am sure something similar could be attempted here.&nbsp;

In the worst case, an option to provide details in the Strings to Document node would help.

You may want to consider similar change in the Word Parser as well.

Cheers.

---

<div class="post-metadata">

**Author:** ![mpenalver](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@mpenalver](https://forum.knime.com/u/mpenalver)\
**Post date:** [July 15, 2020, 9:44pm UTC](https://forum.knime.com/t/pdf-parser/6406/4 "2020-07-15T21:44:28Z")

</div>

What I’m missing is the possibility to select an empty string as title, like in the **String to Document** node. The reason is that the **Dictionary Tagger** will also tag the text in the title, which translates in terms being counted twice in later statistics, or even worse, being counted because they appear in the file path when they do not in the document… To avoid this, I now have to extract the text from the doc and convert this back to a doc with the **String to Document** node, which is quite inefficient.

---

<div class="post-metadata">

**Author:** ![julian.bunzel](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@julian.bunzel](https://forum.knime.com/u/julian.bunzel)\
**Post date:** [July 23, 2020, 11:06am UTC](https://forum.knime.com/t/pdf-parser/6406/5 "2020-07-23T11:06:56Z")

</div>

Hey @mpenalver,

yes, this is true. Tagging affects all parts of the document and currently there is no other solution to extract the document body text and convert it back into a document. If you want to you can update to v4.2 which includes some performance improvements regarding document conversion. So at least, this workaround should be faster now. 😉

Cheers,  
Julian

---

<div class="post-metadata">

**Author:** ![mpenalver](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@mpenalver](https://forum.knime.com/u/mpenalver)\
**Post date:** [July 24, 2020, 1:50pm UTC](https://forum.knime.com/t/pdf-parser/6406/6 "2020-07-24T13:50:05Z")

</div>

I did the moment it came out. 😌

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 2, 2023, 9:41pm UTC](https://forum.knime.com/t/pdf-parser/6406/7 "2023-06-02T21:41:54Z")

</div>

Closed on June 2, 2023, 9:41pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
