Replace Image with text

It is possible to replace the images that may exist in a PDF with a text ? The idea is to generate another PDF without the images and that instead there is a text that refers to the image file already extracted (eg: “image_01”).
This is a workaround that I use to then extract the text, parse the content and know that there is an image between certain text. So then I can incorporate a reference to the image in the right place when I generate my XML file with the content of the PDF.

@lucassebastianmartinez

Thank you for contacting support.

You may iterate through all pages and through each image with ImagePlacementAbsorber and work with different methods exposed by ImagePlacement class. Then you may Add Text to a PDF file as per your requirements.

We hope this will be helpful. Please feel free to contact us if you need any further assistance.