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

Overprint Script

New Here ,
Apr 10, 2016 Apr 10, 2016

Hey guys,

I’m new to InDesign scripting and i’m trying to create an overprint script.

I want the script to change all the small text (below 8pt) on a document to overprint.

I’ve searched the net for overprint scripts but cannot seem to find much on it. Any tips to achieve this?

Many Thanks

TOPICS
Scripting
772
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

Participant , Apr 10, 2016 Apr 10, 2016

Hi gp63139540,

You can set overprint for text by setting in Paragraph styles and character styles. Use the below code to set in all paragraph Styles and if you want to set for all character styles same way you can modify the code.

var pStyles = app.activeDocument.allParagraphStyles, myStyle;

pStyles.shift(); 

  while (myStyle = pStyles.shift()) { 

       if(myStyle.pointSize<8){

           myStyle.overprintFill = true;

        }

      }

Translate
Participant ,
Apr 10, 2016 Apr 10, 2016

Hi gp63139540,

You can set overprint for text by setting in Paragraph styles and character styles. Use the below code to set in all paragraph Styles and if you want to set for all character styles same way you can modify the code.

var pStyles = app.activeDocument.allParagraphStyles, myStyle;

pStyles.shift(); 

  while (myStyle = pStyles.shift()) { 

       if(myStyle.pointSize<8){

           myStyle.overprintFill = true;

        }

      }

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
New Here ,
Apr 13, 2016 Apr 13, 2016
LATEST

Thanks mate. Appreciate the help.

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