Replacing Text in a PDF

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

Sign In or Register to comment.