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

stroke of the textframe is not visible when image was aligned to left of the textFrame

Engaged ,
Sep 22, 2022 Sep 22, 2022

Copy link to clipboard

Copied

How to make the left side frame visible when image was aligned to left edges and vertical center of the page. I tried by aligning the stroke of the textframe to outside but that also not working.Please suggest a way!

var myDoc =app.activeDocument;
var mypage = myDoc.pages.item(0);
//var myImg = mypage.place(filesB[0]);
var imgok =app.activeDocument.allGraphics;
app.select(imgok[0]);
var sel = app.selection[0];
var txtFrame = mypage.textFrames[1];
myDoc.align(sel.parent, AlignOptions.LEFT_EDGES, AlignDistributeBounds.KEY_OBJECT, txtFrame);
myDoc.align(sel.parent, AlignOptions.VERTICAL_CENTERS, AlignDistributeBounds.MARGIN_BOUNDS);
txtFrame.strokeAlignment = StrokeAlignment.OUTSIDE_ALIGNMENT; //outside alignment

 image (11).png

TOPICS
How to , Scripting

Views

191

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

Community Expert , Sep 22, 2022 Sep 22, 2022

Hi @Karthik SG ,

simply change the stacking order of elements.

Bring the text frame with the red border in front of the graphic frame.

txtFrame.bringToFront( imgok[0].parent );

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Votes

Translate

Translate
Community Expert ,
Sep 22, 2022 Sep 22, 2022

Copy link to clipboard

Copied

If I understand correctly, you do not want the image to cover the dashed edge of the frame.

it looks like the image aligns to the left edge of the stroke, is it the same if you make the stroke even wider? i.e. the image aligns even further to the left?

Can you specify a stacking order, for the image to be 'behind' the frame (not sure where I am going with this...)

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
Community Expert ,
Sep 22, 2022 Sep 22, 2022

Copy link to clipboard

Copied

Hi @Karthik SG ,

please share a sample document.

You could leave out the graphic showing inside its container frame; instead replace it with a dummy graphic if the graphic is confidential.

 

Thanks,
Uwe Laubender
( Adobe Community Expert )

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
Engaged ,
Sep 22, 2022 Sep 22, 2022

Copy link to clipboard

Copied

Hi @Laubender ,

for your reference attached the sample document!

 

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
Community Expert ,
Sep 22, 2022 Sep 22, 2022

Copy link to clipboard

Copied

Hi @Karthik SG ,

simply change the stacking order of elements.

Bring the text frame with the red border in front of the graphic frame.

txtFrame.bringToFront( imgok[0].parent );

 

Regards,
Uwe Laubender
( Adobe Community Expert )

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
Engaged ,
Sep 22, 2022 Sep 22, 2022

Copy link to clipboard

Copied

LATEST

Thank You @Laubender, Its working now!

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