function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jan Kopejtko 2Jan Kopejtko 2 

How to copy parts of image attachments using trigger

I need to automate a process that will always copy specified parts of uploaded attachments that are in PDF format.

Let's say I want to always copy the logo which appears on such PDF and always is on the same place in the PDF. I want to copy it and paste it as another attachment but with a link to different object.

How should I proceed? Is it even possible?
Christan G 4Christan G 4
Hi Jan, I don't think it is possible to copy a specific part of an attachment to send but what you can do possibly is render that part in a separate attachment. It most likely depends on how these attachments are uploaded and what methods Apex provides for parsing attachments.