# PDF Redacting

**URL:** <https://forum.knime.com/t/pdf-redacting/89295>\
**Category:** KNIME Analytics Platform\
**Created:** [July 25, 2025, 12:19am UTC](https://forum.knime.com/t/pdf-redacting/89295 "2025-07-25T00:19:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RamseyHanna](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/7993a0/32.png) [@RamseyHanna](https://forum.knime.com/u/RamseyHanna)\
**Post date:** [July 25, 2025, 12:19am UTC](https://forum.knime.com/t/pdf-redacting/89295/1 "2025-07-25T00:19:50Z")

</div>

I am trying to build a workflow that programattically redacts pdfs based on a large key (I have about 6000 text blocks I want removed as an example). I have been trying to use Stirling pdf, but nothing seems to be working, I can’t even get the thing to run. I have it hosted locally, but there doesn’t seem to be a way to get it to work/recognize anything.

---

<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:** [July 25, 2025, 4:45am UTC](https://forum.knime.com/t/pdf-redacting/89295/2 "2025-07-25T04:45:42Z")

</div>

@RamseyHanna welcome to the KNIME forum. Here are two approaches to search for content in a PDF file [using R](https://medium.com/low-code-for-advanced-data-science/knime-and-r-installation-across-operating-systems-some-remarks-6494a2a498cc). Maybe you can elaborate on what you mean by large key and what the result should look like. Maybe even with a sample file/workflow.

> [@Unstructured text mining from PDF](https://forum.knime.com/t/unstructured-text-mining-from-pdf/48625/2):
>
> @janszky_nav there was a similar question on the forum and a text string within a PDF has been identified with the help of R. Maybe you take a look: If the information is structured within a table there might also be a solution using R/tabulizer

---

<div class="post-metadata">

**Author:** ![RamseyHanna](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/7993a0/32.png) [@RamseyHanna](https://forum.knime.com/u/RamseyHanna)\
**Post date:** [August 18, 2025, 1:05pm UTC](https://forum.knime.com/t/pdf-redacting/89295/3 "2025-08-18T13:05:50Z")

</div>

Large key is basically just a list of strings that I want redacted, everything I want redacted is in text so not tables.

In my case, I need CASRN and Chemical Names redacted and I would be pulling those from an excel file, that is the “key”. Final result will be the same pdf but with any of the strings in the key redacted. you can do this manually in adobe, but I have 1000s of documents that I need to do this too.

---

<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 19, 2025, 7:05am UTC](https://forum.knime.com/t/pdf-redacting/89295/4 "2025-08-19T07:05:34Z")

</div>

@RamseyHanna “redacted” means you want the PDF to be marked and not be delivered or something. So basically you want to identify which PDFs do contain these strings. I think this can be done either with [PDF Parser](https://hub.knime.com/n/2Kx_5i_T0CQCJQRP):

> **[KNIME Community Hub](https://hub.knime.com/hayasaka/spaces/KNIME%20Spring%20Summit%20Training%202023/L4-DV%20Low%20Code%20Data%20Extraction%20and%20Visualization/Session_3/02_Solutions/03.2_Regex_with_PDFs_Solution~aQWwmKTwrnSpMIVU/current-state)**
>
> Solutions for data science: find workflows, nodes and components, and collaborate in spaces.

or with the R package shown in the example. Maybe you can provide us with an example that would demonstrate your use case - maybe using dummy data.

You can then build a loop to process your PDFs

> **[KNIME, Paths and Loops — Automate Everything](https://medium.com/low-code-for-advanced-data-science/knime-paths-and-loops-automate-everything-213455788685)**
>
> The (few) nodes that will set you on the right path…

---

<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:** [November 17, 2025, 7:06am UTC](https://forum.knime.com/t/pdf-redacting/89295/5 "2025-11-17T07:06:15Z")

</div>

Closed on November 17, 2025, 7:06am UTC

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