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

Save frame as jpg whthout contour

Participant ,
Mar 29, 2017 Mar 29, 2017

Copy link to clipboard

Copied

Hi

How can i save frame witout contour.

For example:

1. remember contour thickness

2. set contoru thickness = 0

3. save frame as jpg

var exportFile = new File('d:\\test.jpg');

graphics.parent.exportFile(ExportFormat.JPG, exportFile);

4. restore contour thickness

Thanks for advice

TOPICS
Scripting

Views

256

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
Community Expert ,
Mar 30, 2017 Mar 30, 2017

Copy link to clipboard

Copied

LATEST

Hi Robert,

as Karti already pointed out here:How can i change rectangle contour the property is strokeWeight.

FWIW: Setting the strokeWeight to zero, export and resetting the strokeWeight to its old value is no good idea.

You would have to memorize all other properties of a stroke to make that work without issues.

What could go wrong? The color of the stroke could change after resetting the weight.

And some other properties of a stroke could be changed as well.

What can go wrong will depend ( for example ) on the activate object style in the Object Styles panel.

Too much to memorize…

So I would do it differently.

Do a duplicate of the graphic container and work with that.
Reset strokeWeight of the duplicate to 0 .

Export the duplicate.

Remove the duplicate.

See Jongware's resource for older versions like CS5.5:

Indesign JavaScript Help

Regards,
Uwe

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