Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created August 18, 2020 10:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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