Highlighted

Print ps from script

New Here ,
Apr 11, 2020

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?

Most Valuable Participant
Correct answer by Test Screen Name | Most Valuable Participant

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).

Topics

Print and publish, Scripting

Views

180

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Print ps from script

New Here ,
Apr 11, 2020

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?

Most Valuable Participant
Correct answer by Test Screen Name | Most Valuable Participant

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).

Topics

Print and publish, Scripting

Views

181

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Apr 25, 2020

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Most Valuable Participant ,
Apr 25, 2020

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).

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...