Deleting text from a PDF

Hi there.

Is there some way to delete text from a PDF ?

I’ve looked through CHM file and found “CreateText” and “ReplaceText”, but no “DeleteText” … but there is a “DeleteImage”

Also searched the previous posting in this forum, but only found a couple of posts, neither of which indicated it was possible.


Hi Steve,

You might try to replace text with some empty string using ReplaceText method. If you think it doesn’t satisfy your requirement then please do let us know along with any further details.

We’re sorry for the inconvenience.
Regards,

Thanks for the suggestion Shahzad, that might be enough

Is it possible to move the resulting text block, say to the top left of the PDF ?

The requirement is the users have asked if it’s possible to “cut out” any form fields and corresponding labels, where no entry has been made in the field, so e.g.

Label 1 Field 1
Label 2 Field 2
Label 3 Field 3

and only fields 1 and 3 have values entered into them, so they’d like the final PDF to be …

Label 1 Field 1
Label 3 Field 3




Hi Steve,

As far as form fields are concerned, you can remove a particular field by its name or move it to a new position. You can also replace an existing string with an empty string and then add a new string on a particular location.

I hope this helps. If you have any further questions or concerns, please do let us know.
Regards,