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

How to Open Print Window via Javascript ( Normally we are using Ctrl-P shortcut in illustrator )

Participant ,
Apr 05, 2016 Apr 05, 2016

Screen Shot 2016-04-05 at 4.42.26 PM.png

TOPICS
Scripting
1.3K
Translate
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 1 Correct answer

Community Expert , Apr 05, 2016 Apr 05, 2016

You can use executeMenuCommand method like below:

app.executeMenuCommand("Print");

Translate
Adobe
Community Expert ,
Apr 05, 2016 Apr 05, 2016

You can use executeMenuCommand method like below:

app.executeMenuCommand("Print");

Translate
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
Participant ,
Apr 06, 2016 Apr 06, 2016

47c8ccf8c074ed41c67a652198ffc1d31.gif

Translate
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
Participant ,
Apr 08, 2016 Apr 08, 2016

Its possible to get print - Output & mode should be Separations ( need in script )

Screen Shot 2016-04-08 at 2.23.48 PM.png

Translate
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
Participant ,
Apr 11, 2016 Apr 11, 2016

Its possible to get print - Output & mode should be Separations ( need in script )

Screen Shot 2016-04-08 at 2.23.48 PM.png

Translate
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
Community Expert ,
Apr 12, 2016 Apr 12, 2016

I think there are no way to access it. However, You can select Print preset from Javascript.

Translate
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
Participant ,
Apr 12, 2016 Apr 12, 2016

Can u please give any sample for Print preset from Javascript

Translate
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
Participant ,
Apr 12, 2016 Apr 12, 2016

Hi,

You could try this,

PrintColorSeparationOptions.colorSeparationMode = PrintColorSeparationMode.HOSTBASEDSEPARATION;

Translate
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
Community Expert ,
Apr 12, 2016 Apr 12, 2016

Its not work in some environment. Probably, I think its printer drivers issue...

Translate
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
Participant ,
Apr 12, 2016 Apr 12, 2016

can explain detail on this

PrintColorSeparationOptions.colorSeparationMode = PrintColorSeparationMode.HOSTBASEDSEPARATION;


as javascript


Translate
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
Participant ,
Apr 12, 2016 Apr 12, 2016

Three types of print color separations are there. They are COMPOSITE, INRIPSEPARATION, and HOSTBASEDSEPARATION.

Here am setting Host based separation in print color separation options.

Translate
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
Participant ,
Apr 12, 2016 Apr 12, 2016
LATEST

when i run this script ( PrintColorSeparationOptions.colorSeparationMode = PrintColorSeparationMode.HOSTBASEDSEPARATION; )

i am not get anything!!!!

Translate
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