Answered
graphic line
Dear all,
How to draw a graphic line above a specific text frame in Adobe InDesign using scripting
Thanks in advance
Dear all,
How to draw a graphic line above a specific text frame in Adobe InDesign using scripting
Thanks in advance
Hi @John_devs , Select a text frame and try this:
app.scriptPreferences.measurementUnit = MeasurementUnits.POINTS;
var tf = app.documents[0].selection[0];
var b = tf.geometricBounds;
var p = tf.parentPage;
var g = 5;//gap above frame in points
p.graphicLines.add({geometricBounds: [b[0]-g, b[1], b[0]-g, b[3]], strokeColor:"Black", strokeWeight:1});
app.scriptPreferences.measurementUnit = AutoEnum.AUTO_VALUE;
Before:

After:

Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.