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

Hello, i need to disable autofit to every page items but its not working.

Explorer ,
Nov 24, 2020 Nov 24, 2020

Copy link to clipboard

Copied

try {
	   var allPIs = app.activeDocument.allPageItems;
       for(var i=0;i<allPIs.length;i++){
            if (allPIs[i].frameFittingOptions.autoFit == true) allPIs[i].frameFittingOptions.autoFit = false;
       }
        alert("Delete ALL AutoFit Page Items");
	} catch (e) {alert(e + ' at line ' + e.line);}

im using INDD CS5.5, and i have a group with 1 text frame and 3 polygons, 

when i try to disable autofit to every page item its not working, 

but when i ungroup, its worked.

 

TOPICS
Scripting

Views

166

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 1 Correct answer

Explorer , Nov 24, 2020 Nov 24, 2020

sorry, i figured this one out.

because group contain all other pageitem then just need to use a simple if then to get rid of group.

Votes

Translate

Translate
Explorer ,
Nov 24, 2020 Nov 24, 2020

Copy link to clipboard

Copied

LATEST

sorry, i figured this one out.

because group contain all other pageitem then just need to use a simple if then to get rid of group.

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