I have an existing PDF. Inside is formatted text that we would like to replace values with. Looking around I only see ways to add formatted text.
I also read a thread where it was not possible to replace images with new images. Does this also apply to text?
Thanks
Replacing Text
Re: Replacing Text
Support · Jan 15, 2008In general, there is not a way to modify the already existing parts of the PDF document. In other words, you will not be able to search a page for some text and replace it with new text. If you already know the location of where the new text needs to be then you can place it there (over top of the old text) but not actually replacing it. As you were suggesting, this same thing applies to text or images or anything else on the page for that matter.
The idea here is that anything that will need to move, shift or be modified should not be placed on the template PDF. Only elements that are static and fixed should be placed on the PDF template. Anything that will need to be adjusted, edited or determined at runtime should just be added completely at runtime.
Now the one potential additional direction that you could go with this would be to use acro form fields. Using the acro form fields you can change, add or remove values inside of those form fields. These form fields are placed on the PDF template ahead of time and are then referenced by name at runtime. Depending on your exact requirements this could be worth exploring.
Thanks,
ceTe Software Support Team