Replacing Text in a PDF
Comments
-
Hello,
I have a particular string value in a PDF, not in a form field, that I would like to replace with another string value. Is there a step that can do this in Decisions?
-
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]hello,[/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
[/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]There is not a step to do this using our PDF steps. We can update the field values of the PDF using the [b]Get PDF Form Fields[/b] and [b]Set PDF Form Fields[/b] steps, however, there is not a step to directly edit the text of a PDF.[/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
[/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]We do have a step that generates a PDF from HTML called [b]Html to PDF[/b]. Using this step, we can accomplish this by generating HTML text for the original PDF text data, replacing the text target string value using the [b]Replace text[/b] step, and pass the resulting data into the Html to PDF step to generate a newly edited PDF. [/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
[/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]The step [b]Get Text From PDF[/b] can assist in retrieving the original pdf text to edit, however, the HTML formatting for the original PDF will need to be reconstructed to build the PDF with the same formatting as the original file. [/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
[/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]The steps mentioned above can be found in the [b]Data/Text [/b]and [b]Data/PDF[/b] categories in the step catalog. [/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
[/font][/color]
[color=#222222][img]att1[/img][/color]
[color=#222222]
[/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]Also, below Ive included links to documentation providing additional information on processing PDF form fields using a flow, just in case, and generating a PDF from HTML. [/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
[/font][/color][b]HTML to PDF:[/b] https://documentation.decisions.com/docs/turning-richtexthtml-into-pdf
[b]Filling in PDF Forms Using Flow:[/b] https://documentation.decisions.com/docs/filling-in-pdf-forms-using-flow
[b]Retrieving and Processing PDF Form Fields in a Flow:[/b] https://documentation.decisions.com/docs/retrieving-and-processing-pdf-form-fields-in-a-flow
Howdy, Stranger!
Categories
- 4.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions