Copy link to clipboard
Copied
Hello.
I had the task of writing a script to print to a ps file with mutable parameters.
1. I never managed to add the ppd file to Illustrator so that it appeared in the PPDFileList list.
2. I came to the point of saving the preset and opening it with a script. After that, I could not resize the page. Values ​​are accepted without errors and returned upon request, but ps is written with the size specified in the preset.
I still had to change the values ​​in Placement, but before that I did not get it. I suspect that this is also impossible.
3. I indicated the path of PrintJobOptions.File, but a dialog box for saving the file opened (thanks for not error).
My question is: is it possible to do with a script what I wanted or not?
Are you sure you want real PostScript ?
Illustrator creates a lot of imagery which exceeds the native capabilities of good-old PostScript, so you might end up with incomplete files or unexpected results.
If you do want PostScript, then you must have a proper PPD file (like you tried to install) in order to let Illustrator 'dump' its communication directly into a PostScript file. Focus on solving that issue ! All other methods are not optimal or even too difficult to rely on.
You need to install the correct PPD. No page size setting can work reliably with a generic PPD. (Bear in mind page setting is never a %% comment line).
Copy link to clipboard
Copied
Are you sure you want real PostScript ?
Illustrator creates a lot of imagery which exceeds the native capabilities of good-old PostScript, so you might end up with incomplete files or unexpected results.
If you do want PostScript, then you must have a proper PPD file (like you tried to install) in order to let Illustrator 'dump' its communication directly into a PostScript file. Focus on solving that issue ! All other methods are not optimal or even too difficult to rely on.
Copy link to clipboard
Copied
You need to install the correct PPD. No page size setting can work reliably with a generic PPD. (Bear in mind page setting is never a %% comment line).