Skip to main content
BEGINNER_X
Legend
April 24, 2015
Answered

Request for Baseline Shift

  • April 24, 2015
  • 2 replies
  • 614 views

Hi All,

I need urgent request for the below:

1. User select the bullet

2. that bullet should baseline with that line

Screenshot:

Thanks in Advance

Siraj

This topic has been closed for replies.
Correct answer Sajeev Sridharan

Try this,

var baseline = app.selection[0].baseline;

var obj = app.selection[0].createOutlines();

var gb = obj[0].geometricBounds;

app.documents[0].undo();

var baselineValue = gb[2] - baseline;

app.selection[0].baselineShift = baselineValue;

Vandy

2 replies

Sajeev SridharanCorrect answer
Legend
April 24, 2015

Try this,

var baseline = app.selection[0].baseline;

var obj = app.selection[0].createOutlines();

var gb = obj[0].geometricBounds;

app.documents[0].undo();

var baselineValue = gb[2] - baseline;

app.selection[0].baselineShift = baselineValue;

Vandy

BEGINNER_X
Legend
April 24, 2015

Hi Vandy,

Thank you for your very quick response...

Provided code not working in my end.

Kindly check and get back.

Thank a lot.

Regards

Siraj

Legend
April 24, 2015

What is the error it shows?

Have you selected the bullet character?

Vandy

BEGINNER_X
Legend
April 24, 2015

Very Urgent request, kindly help ASAP.