Create a document with the height and the width defined by the user

Hi all

This is my code

myW var = "131pt";
myH var = '41pt;
var myPreset = app.documentPresets.add ();
myPreset.pageWidth = myW;
myPreset.pageHeight = myH;
myDoc var = app.documents.add (true, myPreset, undefined);
myPreset.remove ();

It displays the error "Data is out of reach"

What should do?

Thanks in advance

Reduce the margins before adjusting the height so small value - 41pt

var myW = "131pt";
var myH = "41pt";
var myPreset =  app.documentPresets.add();
myPreset.bottom =  myPreset.top =  myPreset.left =  myPreset.right =0;
myPreset.pageWidth = myW;
myPreset.pageHeight = myH;
var myDoc =  app.documents.add(true,myPreset,undefined);
myPreset.remove();

Kasyan

Tags: InDesign

Similar Questions

  • How can we create a document in the user interface?

    Hi all

    Is there an API to create a document in the user interface? Please help me...

    Oh, I you you now. This is something that was queried on before but most often to get the glimpse of another program. You can get an overview of the current document, open but I don't think that there is an exposed method for a document not open. Obviously, I has this ability, but unfortunately it's not in the API, at least that I've ever seen.

  • A document with 300px height and width with a 300 PPI are 4.17 Indiana?

    I am totally new to Illustrator and must make a document that will be placed in a magazine advertising (it is a free investment, so why, I'm just trying to do it myself). I can get around in PhotoShop and Illustrator is confusing to me. The dimensions of the ad are supposed to be:

    l 2.33 "x 7.5" h

    700 x 2250 pixel

    When I create a new document in Illustrator, leaving the adjustment effects of pixelation in the section advanced at 300ppi, if I change the units set to pixels, 300 for width and height set, then change back units inches, it is said that the width and height are in 4.17.

    Why is this?

    I'm so confused :-/

    .

    Print jobs don't use pixels.

    Set up the document at 2.33 'x 7.5'

    Click on the "Advanced" option in the new Document window, and then make sure that color Mode is CMYK and then pixelation effects is set to high (300ppi) and you're done.

    You can't think in terms of pixels for the print jobs.

    Illustrator, being a vector app, is independent of resolution. In other words, that it does not use pixels at all unless you place a raster image in Illustrator or use a pixelation effect in Illustrator. the pixelation effect setting ensures all raster element created in Illustrator is created at the correct resolution.

  • Captivate 8: PDF export created a file with the extension PDF... but it's actually a video. Shouldn't it exported slides as appropriate PDF document?

    In Adobe Captivate, there is a 'PDF export' checkbox when you publish your project.

    He checked the box, and the publication of project created a file with the extension PDF... but it's actually a video. Shouldn't it exported slides as appropriate PDF document?

    No, it was published in an interactive PDF, has always been the case. It's another way to publish the video, that does not need to deploy it to an LMS or a Web server, you can send the PDF file. However, since Flash player is is more integrated in later versions of the Adobe Reader software, the user is to install it.

  • I have created a new domain with win2012r2 and created users. Add after the client in my area so that the newspaper with the user I get error below.

    Hello

    I have created a new domain with win2012r2 and created users. Add after the client in my area so that the newspaper with the user I get error below.

    "You cannot connect because the logon method, you use is not allowed on this computer, please, see your ad min for more information network"

    Please help me with that and I don't want to give permission to admin for all users group...

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • I created a project with the first 14 and now subscribed elements trial version. However, when I open it there still the band "created with the trial version...". "in the middle of the page. How can I get rid of this?

    I created a project with the first 14 and now subscribed elements trial version. However, when I open it there still the band "created with the trial version...". "in the middle of the page. How can I get rid of this?

    SAMT

    Removal of watermark Adobe Premiere elements 14 test of the project file... Open the project file of 14 trials in 14 items purchased and then first Expert rendered workspaceTimeline Menu/delete the files. Then restore the timeline content.

    You can not remove the watermark from Adobe to an export of the trial even after you bought the product.

    Some of us have found that just opening the project of tryout in removes it from Premiere Elements purchased the Adobe watermark. Determine the way that works for you.

    Please let us know if everything above worked for you.

    Thank you.

    RTA

  • HP Deskjet F2210 printer will not print my documents with the exception of my e-mail highlighted

    HP Deskjet F2210 printer will not print my documents with the exception of my e-mail address highlighted who is on the document, it is not cartrages, as it will print one page black and multicolor of the internet. Help, please.

    If you found problems with print quality with the only printer without printing from the computer, then it is a hardware problem.

    You may need to contact HP (1800-474-6836) support. Looks like a print head may be bad or needs to be cleaned manually. I don't think that this printer has a detachable printhead to clean manually.

  • How to create a user local administrator with the user root on the CV

    As says the tile, how to create a user local administrator with the user root on VCS-Express. I lost the password and cannot log in as an admin user, but I can't seem to log as long as user root.

    Once connect you with the root account, type in "tsh", from there, you can create the accounts of local administrators with 'xCommand AdminAccountAdd.  See the reference section of command of the VCS Administrator's Guide, starting on pg 517.

    If your VCS is a virtual machine, you can change the password of admin with vSphere, or if it is a hardware appliance, you can use the serial port, see pg 312 of the Administrator's guide.

  • How can I create a query with the data control to the web service?

    I need to create a query with the order of web service data, WSDL, it is query operation, there is a message of parameter with possible query criteria and a return message contains the results. I googled but can't find anything on the query with the web service. I can't find a criterion "named" to the data control of web service as normal data control. Blog of Shay, I saw the topics on the update with the data of web service command. How can I create a query with the data control to the web service? Thank you.

    Hello

    This might help

    * 054.     Search form using control data WS ADF and complex of entry types *.

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/index-101235.html

  • How to create two employees with the same name as the vendor record?

    Hi all

    We must create a vendor for the employee record, so that we can issue pretty invoice for cash payment. If there are 2 employees with the same name, how can we create records of supplier for these 2 employees? The system does not have the name of the provider in duplicate.

    Please notify.

    Kind regards
    HY

    Hello

    In R12, it is possible to create 2 employee with the same name but with a different number.
    And it is also possible to create these 2 employees as suppliers in Payables.

    HTH,
    Vik

  • help me create a column with the time format

    Hi all

    Please help me find the query to create a table with 3 columns and insert the following data

    ENTITYID | CHGDATE | CHGTIME

    ======= ==================== ========

    4214984 | 2 OCTOBER 06 12.00.00.000000 AM | 07:23:57

    4214985 | 12.00.00.000000 11-SEP-08 AM | 10:52:19

    and update of the first line of the above table as follows
    ---------------------
    4214984 | 2 OCTOBER 06 07.23.57.000000 AM | 07:23:57
    ------------------------
    you will need to update the CHGDATE column with the time of the CHGTIME column.

    Sorry, we need a new format around the to_date

    select to_date(to_char(chgdate, 'mm/dd/yyyy') || ' ' || to_char(chgtime, 'hh24:mi:ss'), 'mm/dd/yyyy hh24:mi:ss') from etime3;
    

    This should telll Oracle to the format of the generated string. If this isn't the case, run select with the to_char two as separate columns to see that get us the data that we expect.

  • I created a document with textedit, and now need to add a password

    I created a document with textedit, and now need to add a password to this document that exists.  Is it possible to do?

    I'm afraid that there is not.

  • Upgrade to 8.1 fails "you must use an account with administrator privileges to install Windows 8.1." "Try loggin with the user of an administrator on this PC account and try the update again.

    Hello

    I have some difficulties to try to upgrade to windows 8... The computer asked me to go to 8.1, I click OK and it sends me to the store. Then I click on "Download Windows 8.1 Pro" and I get the message:
    "You must use an account with administrator privileges to install Windows 8.1." Try loggin with the user of an administrator on this PC account and retry the update", as shown in the attached picture.

    The thing is that I am the only administrator account.
    I also checked enable the built-in Administrator, by logging in and trying to here, but from the account built-in administrator is not aloud me to use Store.

    What can I do? Thank you

    Original title: upgrade Windows 8 Pro x 64 to Windows 8.1

    Hello

    I've read reports that uninstalling Windows Update KB2871389, and then put it back solves the problem.

    I read recently that this Fix - It might help...

    http://support.Microsoft.com/kb/971058/en-us

  • How can I add a form with the user name and password

    I would like to add a registration form with the user name and password. Are there any embedded html or widget for this

    Hello

    Here you will find a similar description:

    https://forums.Adobe.com/message/6078030

    https://forums.Adobe.com/message/6141887

    Thank you

    Sanjit

  • You are about to open a session "keiron.me.uk" with the user name "Gerry" site, but the site requires no authentication. Maybe it's attempt to deceive you.

    http://Keiron.me.UK

    This very annoying message what I select my site

    You are about to log on the site "keiron.me.uk" with the user name "Gerry", but the site requires no authentication. Maybe it's attempt to deceive you.

    It is ok with Internet Explorer

    To resolve this problem, simply is to remove all bookmarks you have to keiron.me.uk and then re-create by vising the site by typing the address directly into the address bar.

    If you want to manually fix it then, check the properties of the location of all bookmarks that you have for keiron.me.uk. It is probably similar to http://keiron:[email protected] remove the keiron:password @ section and the dialog box should not appear again.

Maybe you are looking for