sky-chaser-high / adobe-illustrator-scripts

This is a collection of scripts for Adobe Illustrator.
MIT License
111 stars 8 forks source link

The relinkFileExtensionExtra.js Can I replace the PDF page? #9

Closed jxyun99 closed 1 month ago

jxyun99 commented 3 months ago

For example, if all the linked files are in PDF format and the current link is page 1 of PDF, I would like to use a script to batch link different PDFs into page 2 pdfa pdfb 33

sky-chaser-high commented 3 months ago

Hi jxyun99 It doesn't seem possible to specify a page in the relink, but with some ingenuity, it might be possible to implement it. I'll give it a try.

jxyun99 commented 3 months ago

placeReOptionAI.zip I recently found a script that can replace pages with PDF links, but it can only replace one file at a time and does not support CS6. Can you see if it has any reference value?

sky-chaser-high commented 3 months ago

Now, we are upgrading relinkFileExtensionExtra.js and will have it finished by the end of this week. If you want placeReOptionAI.jsx to work in CS6, change the 16 in line 23 to 15. I don't have CS6, I can't verify this, but it may not work with the change. I think it would be better to wait for the relinkFileExtensionExtra.js modification as it would require significant modification to modify it to replace multiple files at the same time.

sky-chaser-high commented 2 months ago

Hi jxyun99 Updated. Please try it out.

jxyun99 commented 2 months ago

Tested in AI 2024, it works normally, but not in CS6 I also found a bug where if the linked PDF object rotates, the newly linked file will not rotate along with it

sky-chaser-high commented 2 months ago

CS6 and CC do not seem to allow pages to be specified. CC2015 and later were able to specify. It looks like we will have to give up on the pre CC versions. I will correct it regarding rotation.

jxyun99 commented 2 months ago

I have found another script that can replace the specified PDF page for CS6( The script specifies page 2), to see if it has any reference value Placed.zip

sky-chaser-high commented 1 month ago

Updated.

jxyun99 commented 1 month ago

Thank you, the test is done