Page 1 of 1

Replacing a particular image in the pdf with different image

Posted: Fri Dec 06, 2024 7:53 am
by zurek
Hi guys,
I'm looking for a way to replace an image element in the pdf with different image. I have Swich, PitStop, Callas and few other tools. This must be as much automated as possible.

PDF I'm working with is converted from SVG (script in Switch) hence why pretty odd structure.
Marked image (see below) must be somehow replaced with diferent image I'll have as loose PNG or PDF not sure yet.
Any idea how to grab particular image, keeping all other objects like masks/transparencies intact and paste something else?
Screenshot 2024-12-06 074818 (1).png
Screenshot 2024-12-06 074818 (1).png (95.15 KiB) Viewed 9852 times

Re: Replacing a particular image in the pdf with different image

Posted: Fri Dec 06, 2024 11:00 am
by JimmyHartington
The only idea I have would be to think of it in terms of layers.
I suspect you have Pitstop Server at your disposal.

If you somehow can select all the background objects and move to a specific layer.
Select the front objects and move to the own layer.
Then select the image which needs to be replaced. Delete it.
Add the new image to the pdf on its own layer.
Select the objects on the background layer and send to back.
Select the objects on the front layer and send to front.

If you can control more in the flow, then maybe the backround object could be a separate pdf. The front objects another pdf. and the image a third pdf.
Then you could use an action list to layer them on top of each other.

Re: Replacing a particular image in the pdf with different image

Posted: Thu Dec 12, 2024 9:37 am
by zurek
Hi Jimmy,
Thanks for the reply, I was thinking about solution similar to yours but I'm not sure if all files will have exactly the structure. I'll try to do this at the stage where PDF is being generated out of SVG with script.