• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

Create new document in milimeters

Community Beginner ,
Jan 17, 2024 Jan 17, 2024

Copy link to clipboard

Copied

How to create a new document with measurement units in millimeters using script? 

TOPICS
How-to , Scripting

Views

108

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
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 17, 2024 Jan 17, 2024
var docPreset = new DocumentPreset;
docPreset.units = RulerUnits.Millimeters;
docPreset.width = 210 * 2.8346456;
docPreset.height = 297 * 2.8346456;
docPreset.colorMode = DocumentColorSpace.RGB;

var doc = app.documents.addDocument(DocumentColorSpace.RGB,docPreset);

Votes

Translate

Translate
Adobe
Community Expert ,
Jan 17, 2024 Jan 17, 2024

Copy link to clipboard

Copied

LATEST
var docPreset = new DocumentPreset;
docPreset.units = RulerUnits.Millimeters;
docPreset.width = 210 * 2.8346456;
docPreset.height = 297 * 2.8346456;
docPreset.colorMode = DocumentColorSpace.RGB;

var doc = app.documents.addDocument(DocumentColorSpace.RGB,docPreset);

Votes

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
community guidelines