Highlighted

Newbie Question #1: Creating New Document

Community Beginner ,
Jul 17, 2019

Copy link to clipboard

Copied

I have written jsx scripts from existing documents but am having issues creating new objects.

How do I create a new blank portrait document? the app.documents.add() command does not work for me. The results will only contain a single table so I do not think a template is needed.

Adobe Community Professional
Correct answer by frameexpert | Adobe Community Professional

#target framemaker

var doc, PT = 65536;

doc = CustomDoc (612 * PT, 792 * PT, 1, 12 * PT, 72 * PT, 72 * PT, 72 * PT, 72 * PT,

    Constants.FF_Custom_FirstPageRight, true);

TOPICS
Scripting

Views

128

Likes

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

Newbie Question #1: Creating New Document

Community Beginner ,
Jul 17, 2019

Copy link to clipboard

Copied

I have written jsx scripts from existing documents but am having issues creating new objects.

How do I create a new blank portrait document? the app.documents.add() command does not work for me. The results will only contain a single table so I do not think a template is needed.

Adobe Community Professional
Correct answer by frameexpert | Adobe Community Professional

#target framemaker

var doc, PT = 65536;

doc = CustomDoc (612 * PT, 792 * PT, 1, 12 * PT, 72 * PT, 72 * PT, 72 * PT, 72 * PT,

    Constants.FF_Custom_FirstPageRight, true);

TOPICS
Scripting

Views

129

Likes

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
Jul 17, 2019 0
Adobe Community Professional ,
Jul 17, 2019

Copy link to clipboard

Copied

#target framemaker

var doc, PT = 65536;

doc = CustomDoc (612 * PT, 792 * PT, 1, 12 * PT, 72 * PT, 72 * PT, 72 * PT, 72 * PT,

    Constants.FF_Custom_FirstPageRight, true);

Likes

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
Reply
Loading...
Jul 17, 2019 2