• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Print ps from script

New Here ,
Apr 11, 2020 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?

TOPICS
Print and publish , Scripting

Views

352

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
community guidelines

correct answers 2 Correct answers

Community Expert , Apr 25, 2020 Apr 25, 2020

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.

Votes

Translate

Translate
LEGEND , Apr 25, 2020 Apr 25, 2020

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

Votes

Translate

Translate
Adobe
Community Expert ,
Apr 25, 2020 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.

Votes

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
community guidelines
LEGEND ,
Apr 25, 2020 Apr 25, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines