Replacing a particular image in the pdf with different image

Post Reply
zurek
Newbie
Posts: 11
Joined: Thu May 26, 2022 10:23 am

Replacing a particular image in the pdf with different image

Post 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 9850 times
User avatar
JimmyHartington
Advanced member
Posts: 453
Joined: Tue Mar 22, 2011 7:38 am

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

Post 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.
zurek
Newbie
Posts: 11
Joined: Thu May 26, 2022 10:23 am

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

Post 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.
Post Reply