Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created August 18, 2020 10:17
Show Gist options
  • Save bjoerntx/7cb09904ef791f02332d222090510533 to your computer and use it in GitHub Desktop.
Save bjoerntx/7cb09904ef791f02332d222090510533 to your computer and use it in GitHub Desktop.
function InsertTextFrame(name) {
TXTextControl.textFrames.addAnchored(
{ width: 3000, height: 2000 },
TXTextControl.HorizontalAlignment.Center,
0, // TextPosition
TXTextControl.TextFrameInsertionMode.AboveTheText,
(addedTextFrame) => {
addedTextFrame.selection.setText("Signature Box");
addedTextFrame.setBackColor("LightGrey");
addedTextFrame.setName("txsign");
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment