Noob to the community. But I have searched and cannot find.
Specific need: On a multiple page file (50-200 pages), we have a daily need to delete and replace a repeating image that is the same size, shape, position on several pages. We use this image as a link to return back to the page the viewer came from (after it has been converted to PDF). The reason for this need is to overcome our scrambled links issue (I know, different thread - different day). So presently, each time we update and a scramble takes place, we delete the offending linked image, and paste a good one in its place. If there was a macro to select and delete the offending image (from a custom page range), this would be our little miracle. A bigger miracle would be a macro to not only do that, but also replace a new image with a valid link in its place.
I have seen some brilliant solutions on this community - anyone know of a Macro fix?
NOTE: Presently, I found Yinka's Macros that offer a solution for copy/pasting multiple images as part of the solution (it works, even with links attached). But the action of deleting multiple images before pasting new ones is still needed.
Thoughts? Miracles? Many thanks in advance.
Brian
Does a new bitmap have "the same size, shape"? If it does you can try to use Externally Linked bitmap functionality. You have to replace your bitmaps with a linked version once and then it is easy to rename an original bitmap file and then to update the CorelDRAW file with a macro like:
Dim s As Shape, p As Page For Each p In ActiveDocument.Pages For Each s In p.FindShapes(, cdrBitmapShape) If s.Bitmap.ExternallyLinked Then s.Bitmap.UpdateLink Next s Next p
Of cource the replace bitmaps macro can be written witout the need to use the externally linked bitmaps, but it is more time consuming task (for a macro writer, not user :) ).
Thank you Lev! It is so awesome to get such a quick reply.
So, the image I am deleting and replacing is vector (but that could be changed to bitmap of course if this was the solution) but the problem is the bookmark-link itself associated with the image - not the image itself. We just replace the bookmarked image in one shot for speed.
We have several sections of articles that link back to a single page. An easy way to think of it is a front end timeline (that is broken into 16 pages) each timeline page having several entries that link out to a single article page related to the entry. Then, the article has a return page link. Since there are several articles returning to the same timeline page, I need to often replace the link (or bookmarked image) from several article pages to the single timeline page when Corel scrambles the links. Thus, several articles link back using the same bookmark.
Thus, I am not sure an externally linked image would be the best solution - but a quick way to delete the incorrectly bookmarked image and replace it with an image with the correct link seems to fit. Of course, I would need to repeat this step for each set of scrambled links. But this would be faster than delete/pasting "one potato, two potato...;)"
I had an aha moment. The timeline can be seen in PDF at our company website (I am not trying to advertise - I promise: https://legalgraphics.net/
Look for the red coronavirus icon and download the timeline. This is one of the projects we work on daily like this and this is the biggest. On it, you can see the link functionality and it may help better describe a potential fix. Once you see all the links, imagine a full corel bookmark scramble and needing to fix them all (or many). Gah! I am thinking realistically, the return image is the only bulk solution for a macro (and would save us time daily). That said, it would make a world of difference.
Sorry so wordy....Thoughts?
You can try to use the CorelDRAW "Symbol" functionality - make symbols of your images and replace all of them by editing the Symbol instance.
You can find an "object replacer" macro on the Oberonplace forum and update it for your needs.