Skip to main content
Nicky G.
Known Participant
April 25, 2023
Question

Script Position files and flatten transparencies and fonts

  • April 25, 2023
  • 3 replies
  • 1107 views

Is it possible to create a script that imports and places *.ai files into multiple artboards as a link and then applies transparency flattening with font to curve conversion? 

I have in mind the script how and soda should do but I don't know how to do it. Someone to help me? It could be interesting to open, when needed, all those documents where we don't have the font But we need it to take parts, untraced logos, etc. Help

This topic has been closed for replies.

3 replies

Nicky G.
Nicky G.Author
Known Participant
May 6, 2023

I try to explain as best I can, forgive me for the English from Google, I'm Italian 😞
@m1b @Met1 
The script would consist of 2 parts,

part 1:
The upper one, where there is a File button to search for files (*.ai, *.pdf) to import as a link (place in page).
The script must have the selection of the page range to import (place) example 1 of 12 (12 the maximum number of pages found in the file).

 

Part 2:
Below, in the Flattening transparency section, there will be 3 radio buttons.

° None: Nothing is applied
° Text: Apply the Saved Preset [TEXT TO OUTLINE] from the flattener panel
° Text and Trace: Apply the Saved Preset [TEXT/TRACE TO OUTLINES] from the flattener panel

 

the conversion will be applied to the pages selected below:
page from - to . (1 - 12)

------------
When OK is pressed the script will have to check with an IF/ELSE if the preset stored in the transparency conversion panel exists.
(the 2 presets are highlighted in the photo)
Therefore, before applying the flattener, he must check if the preset exists, if he doesn't find it (at the first launch of the script), he must create it.

if = true {
Apply the presets
} else = false {
CREATE the 2 presets
Apply the preset chosen in the radio button
}

Nicky G.
Nicky G.Author
Known Participant
May 13, 2023

I thought it was an easy script to do, but apparently I was wrong.

m1b
Community Expert
Community Expert
May 6, 2023

Hi @Nicky G., to make it easy for people to understand what you want, please specify what each step in your manual process would be. Then we can assess if it is possible for a script to replicate. - Mark

Met1
Legend
May 1, 2023

If you don't have the font, opening as an .ai file isn't going to help you, you need pdf with fonts embedded.

Nicky G.
Nicky G.Author
Known Participant
May 1, 2023

Ai files are already saved with PDF preview...
I've already tested it and it's doable.
Files should be entered as external links and not as file openers.
Only I can do it manually.
I would like to make a script that automates all the various steps....