# Help me Extract "11 04 22" from a PDF

**URL:** <https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859>\
**Category:** KNIME Analytics Platform\
**Tags:** regex\
**Created:** [May 2, 2025, 2:27pm UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859 "2025-05-02T14:27:08Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kinetic\_Bullet](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/97f17d/32.png) [@Kinetic\_Bullet](https://forum.knime.com/u/Kinetic_Bullet)\
**Post date:** [May 2, 2025, 2:27pm UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859/1 "2025-05-02T14:27:08Z")

</div>

Hi all,  
My first post. I have PDF for construction specification. The PDF lists the spec numbers like this “11 04 22”. I’d like KNIME to read the PDF and extract similar strings.

So far, this is what I have tried:  
 ![KNIME](https://forum-cdn.knime.com/uploads/default/original/3X/8/0/80823717114ff5cfec837f4626b6c87b737b4f8d.png)

The top approach in the screenshot above gives me only one string.  
The bottom approach splits the string “11 04 22” into three rows:  
11  
04  
22  
Which is not what I want.  
Can anyone please help me!  
Thank you.

---

<div class="post-metadata">

**Author:** ![rfeigel](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@rfeigel](https://forum.knime.com/u/rfeigel)\
**Post date:** [May 2, 2025, 4:58pm UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859/2 "2025-05-02T16:58:30Z")

</div>

It would be easier for someone to help if you could share your workflow. Make sure to include the pdf(s) with the workflow. In the meantime try using a chunk loop after the Tika Parser.

---

<div class="post-metadata">

**Author:** ![Kinetic\_Bullet](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/97f17d/32.png) [@Kinetic\_Bullet](https://forum.knime.com/u/Kinetic_Bullet)\
**Post date:** [May 6, 2025, 1:41pm UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859/3 "2025-05-06T13:41:18Z")

</div>

Hi rfeigel,  
Adding chunk loop after Tika gave the same results. I found the best solution is to convert the pdf to excel sheet but this means that I have to do additional cleanups before I import into KNIME.

Not sure if you can see the screenshots above but is there another workflow you want me to share?

---

<div class="post-metadata">

**Author:** ![rfeigel](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@rfeigel](https://forum.knime.com/u/rfeigel)\
**Post date:** [May 6, 2025, 1:58pm UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859/4 "2025-05-06T13:58:38Z")

</div>

Please share an actual workflow not a screenshot. I can’t help without a sample pdf.

---

<div class="post-metadata">

**Author:** ![Kinetic\_Bullet](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/97f17d/32.png) [@Kinetic\_Bullet](https://forum.knime.com/u/Kinetic_Bullet)\
**Post date:** [May 6, 2025, 3:44pm UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859/5 "2025-05-06T15:44:24Z")

</div>

Here is the pdf file and the workflow as requested.

Thank you for your help.  
[PDF PARSER.knwf](https://forum.knime.com/uploads/short-url/zAMLaylD3WETQt8yZNFIF31Pj3d.knwf) (88.4 KB)  
[Sepcs TOC.pdf](https://forum.knime.com/uploads/short-url/bNYBasIf7Y3IjKYiafsViSW5Zne.pdf) (731.1 KB)

---

<div class="post-metadata">

**Author:** ![rfeigel](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@rfeigel](https://forum.knime.com/u/rfeigel)\
**Post date:** [May 7, 2025, 3:01am UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859/6 "2025-05-07T03:01:33Z")

</div>

Try this. The pdf you posted doesn’t seem like its exactly what you described in your post, but the structure seems the the same.

> **[PDF Parse Rows – rfeigel](https://hub.knime.com/rfeigel/spaces/Public/PDF%20Parse%20Rows~aFlmPSzemjeJZu75/current-state)**
>
> Solutions for data science: find workflows, nodes and components, and collaborate in spaces.

 ![workflow](https://forum-cdn.knime.com/uploads/default/original/3X/d/e/decd1561918f09b7f40e3321817d0e23de06192b.jpeg)

---

<div class="post-metadata">

**Author:** ![Kinetic\_Bullet](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/97f17d/32.png) [@Kinetic\_Bullet](https://forum.knime.com/u/Kinetic_Bullet)\
**Post date:** [May 7, 2025, 12:09pm UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859/7 "2025-05-07T12:09:16Z")

</div>

1. When I open the workflow, I get this warning message.  
 ![Warning During Load](https://forum-cdn.knime.com/uploads/default/original/3X/8/f/8f2c72667687e8c5543be84cd02443b3326d3198.png)
2. I used a different pdf but String Splitter (Regex) now cannot find the Data String column! why is that?  
 ![String Splitter (Regex) is missing Data](https://forum-cdn.knime.com/uploads/default/original/3X/3/4/3492e0a434a461ef614712fd90aea25b01ccac36.png)  
Thank you for your help.

---

<div class="post-metadata">

**Author:** ![rfeigel](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@rfeigel](https://forum.knime.com/u/rfeigel)\
**Post date:** [May 7, 2025, 2:17pm UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859/8 "2025-05-07T14:17:10Z")

</div>

Check the Table Manipulator node and make sure its configured as shown below. Row0 may be named differently. If you post the second pdf I’ll check it.

 ![Table Man](https://forum-cdn.knime.com/uploads/default/original/3X/f/d/fd05604c1712a1a10dbc0a02baad8b4206ef86bc.jpeg)  
You’ll also need to reset the Tika Parser directory location to your local location.  
 ![tika parser](https://forum-cdn.knime.com/uploads/default/original/3X/6/e/6e3c0cc5e549f31b15c994af8866c2222dd4d331.jpeg)

---

<div class="post-metadata">

**Author:** ![rfeigel](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@rfeigel](https://forum.knime.com/u/rfeigel)\
**Post date:** [May 8, 2025, 1:10am UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859/9 "2025-05-08T01:10:27Z")

</div>

A “like” isn’t very informative. If its working, please mark solved. If not provide some more information.

---

<div class="post-metadata">

**Author:** ![Kinetic\_Bullet](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/97f17d/32.png) [@Kinetic\_Bullet](https://forum.knime.com/u/Kinetic_Bullet)\
**Post date:** [May 12, 2025, 12:18pm UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859/10 "2025-05-12T12:18:38Z")

</div>

This is strange, for Row0, there is no option to change the type to String. I deleted the Table Manipulator node and inserted a new one but still refuses to show me String. Any idea why?

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/3/6/36b33d2b7f7a63a78ce5f9f51d4b3396e4bfb101.png)

---

<div class="post-metadata">

**Author:** ![rfeigel](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@rfeigel](https://forum.knime.com/u/rfeigel)\
**Post date:** [May 12, 2025, 1:52pm UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859/11 "2025-05-12T13:52:50Z")

</div>

Are you trying to parse a different pdf than the one you originally posted? If so, please post. Did you make changes to my workflow? Here’s a workflow using the Column Auto Type Cast node which "automatically’ converts non-native data formats.

> **[PDF Parse Rows rev 1 – rfeigel](https://hub.knime.com/rfeigel/spaces/Public/PDF%20Parse%20Rows%20rev%201~6VHKp0oiuT5HAY_J/current-state)**
>
> Solutions for data science: find workflows, nodes and components, and collaborate in spaces.

 ![workflow](https://forum-cdn.knime.com/uploads/default/original/3X/8/3/83c59b7f2b1e58565a32003b6d7b200f35df4ec4.jpeg)

---

<div class="post-metadata">

**Author:** ![Kinetic\_Bullet](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/97f17d/32.png) [@Kinetic\_Bullet](https://forum.knime.com/u/Kinetic_Bullet)\
**Post date:** [May 12, 2025, 2:45pm UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859/12 "2025-05-12T14:45:47Z")

</div>

Hi,  
Thank you for sticking with me. I will give the above a try.

The pdf I gave you was an extracted version of a huge pdf. The format is the same. I don’t understand why this issue occurred to begin with?

Why I’m getting non-native data type when using different pdf but has the same layout/format? Please explain.

---

<div class="post-metadata">

**Author:** ![rfeigel](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@rfeigel](https://forum.knime.com/u/rfeigel)\
**Post date:** [May 13, 2025, 12:32am UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859/13 "2025-05-13T00:32:03Z")

</div>

I don’t have a good explanation. The problem happens in the Table Transposer node. I have seen this before. The node doesn’t always seem “smart enough” to assign a data type to the transposed column(s). Adding the Column Auto Type Cast node downstream has always fixed the problem for me. So don’t worry about it.

---

<div class="post-metadata">

**Author:** ![Kinetic\_Bullet](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/97f17d/32.png) [@Kinetic\_Bullet](https://forum.knime.com/u/Kinetic_Bullet)\
**Post date:** [May 14, 2025, 12:52pm UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859/14 "2025-05-14T12:52:05Z")

</div>

Ok. Thank you very much for sticking with me to the end and finding a solution. I did a test and converted a word document to pdf and your workflow worked flawlessly!!

I will mark the previous post as a solution!

---

<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:** [May 21, 2025, 12:52pm UTC](https://forum.knime.com/t/help-me-extract-11-04-22-from-a-pdf/87859/15 "2025-05-21T12:52:52Z")

</div>

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