The scaling and positioning of the images in the framework

In JavaScript, I try to place an image within a framework which already exists and then put the image to a specific size and move it to a specific location in the framework.

I'm the placement using the:

pageItem.place (File (imagePath + name));

I tried to find the code, but all I can find are standard fit content to frame, content, etc. Center.

I tried...

pageItem.verticalScale = 90;

.. .and it resizes the frame, not the frame content.

How can I request this content?

I need to put in place a transformation matrix?

Could someone share the lines of code for this?

Thank you!

your "pageItem" is the framework. [Once you placed something in this framework, you can see in "pageItem.graphics [0 ']. Then "pageItem.verticalScale = 90" should be "pageItem.graphics [0] .verticalScale = 90".»

Tags: InDesign

Similar Questions

  • Do all the images the same size and position

    Is there a way to Captivate 8 to make several images of the same size and position on one screen?

    Instead of having to manually adjust the properties?

    Thank you.

    Select all, first one selected must have the right position and size. Then use right-click menu, Align, align and resize of the same size.

  • Image resizing, I tried to use the scale and positioning, but it won't save!

    I'm working on a project and most of the images do not match the size of the screen so I used the video efects > scale and Position to do things.  It changes, then I visited and then go back to it and he's back to where he started.  I can't understand this?

    Even by double clicking on the image and move it with the mouse do not work.  It leaves a black line next to the image where it does not.  How to cover, I'm doing it wrong?  This is how I did in the past.  I tried l ' down and restart.  Nothing works!

    Let me know if you figure out how to fix it you and how you did it.

    Thank you! sScreen Shot 2014-03-19 at 3.36.32 PM.png

    I thought about it!  I went through everything and I mean everything and it was the box that says unifirm scale under video effects.  I want that my last 3 hours back Adobe!  Thanks for the help though!

  • How to keep the rotoscoped submitted to the same size and position?

    Hi all, please can help you? I am just learning After Effects.

    I rotoscoped a dog of a beach scene, about 400 senior! I applied a curve in order to make the dog a silhouette and made the background transparent.

    Now, I want the dog to stay in the middle of the screen and the same size. Currently she slowly moves to the bottom of the frame and enlarged it.

    Can someone help me reach this goal?

    Thank you very much in advance for any help!

    You must read on tracking (conventional follow-up, not 3D). You need at least a 2 point for scaling and track position. Wiould stabilize you the position and applies the opposite scale to identify your dog. the details will depend on what your footage looks like, of course.

    Mylenium

  • Help compare the negative and positive values

    Well guys, I do this example to show you what I mean

    With this example, I can get positive and negative numbers in digital

    But for me, the 'negative' mean nothing

    Example:

    If I have "100-200" for me the biggest value is - 200

    But if I compare the values of bouth got 100 as greater value

    I do the same calc for 3 different variables such as A, B, C

    and after that I need to calc whose value is 'more '.

    But my problem is that if I have the values "-350 300-400.

    the largest will be "300", but for me the 'negative' mean nothing

    so I need to the largest value is "-400".

    For all positive values, its works very well!

    I compare A and B, after the highest is on C and have a result!

    but when I have negative and positive values... I had this problem...

    and when I have negative values only I have a problem too.

    '-300-400-500' for me the largest value must be "-500" but labview-watch "300".

    as - 300 is greater than-500 in algebriac.

    And if I use absolute values, I will always have a positive value... but I need to know if the value is positive or negative

    No matter which, can help me with this?

    Thank you

    Ben

  • Why don't the FOLDER WINDOWS remember their size and position when last closed windows program how do.

    All files should be able to recall it size and position ANY TIME THEY ARE OPEN.

    The hot - fix http://support.microsoft.com/kb/979560 (however caused heart attack when the computer would not start after the installation) is a nice step in the right direction but not a complete solution.  Windows foldershould open in the State they were when closed last.  Already, they remember the way their information is displayed, then why not their size and their position.

    Windows has always been very weak in the area of memory of the Office Organization.  God forbid your icon layout should be messed up.

    Bravo on the labelling of the things in the taskbar, but why not the desktop computer?

    Here is the article that I found that explains boredom and suggests shellfolderfix

    http://www.howtogeek.com/HOWTO/11687/shell-folder-fix-remembers-window-locations-in-Windows-7/

    so far, I like it

  • Get the height and width of an image

    I have therefore some images in my program that I'm loading. These images are much longer than the size of the screen. So I put in a ScrollView. My question is how can I get the height and width of an image. The image.width and image.height doesn't return the correct values.

    //add the image
    private function addImage():Container {
        var sp1:Container = new Container();
        sp1.sizeUnit = SizeUnit.PIXELS;
        sp1.debugColor = 0xFFFFFF;
        sp1.margins = Vector.([1,0,0,0]);
        sp1.align =ContainerAlign.NEAR;
        //sp1.setSize(650, 800);
    
        var myPattern:RegExp = / /g;
        var fileName:String = "./com/swiz/img1.png";
        var icon:Image = new Image();
        icon.setImage(File.applicationDirectory.resolvePath(fileName).url);
        //icon.setPosition(0,0);
        //icon.setSize(320,800);
        sp1.addChild(icon);
        sp1.setSize(650, icon.height);
    
        return sp1;
    }
    

    and my code scrollview is

    //add to the scrollView
    var scroller:ScrollPane = new ScrollPane();
    scroller.width = 650;
    scroller.height = 505;
    scroller.y = 0;
    scroller.addScrollContent(addImage());
    addChild(scroller);
    

    Thanks in advance!

    Hey shethab,

    in order to retrieve the height and width of your image, you must use use the an event listener on your image and check for the Event.COMPLETE event. What is happening because the image you upload is not built, it takes time to load into your application using the setImage() method. and when you check the width height after the setImage method, the image was not loaded and has no height and width to this second. If you use the event listener, you can retrieve the height and width as it was finally loaded.

    Try the following code:

    import flash.events.Event;
    
    //add the image
    private function addImage():Container {
        var sp1:Container = new Container();
        sp1.sizeUnit = SizeUnit.PIXELS;
        sp1.debugColor = 0xFFFFFF;
        sp1.margins = Vector.([1,0,0,0]);
        sp1.align =ContainerAlign.NEAR;
        //sp1.setSize(650, 800);
    
        var myPattern:RegExp = / /g;
        var fileName:String = "./com/swiz/img1.png";
        var icon:Image = new Image();
        icon.setImage(File.applicationDirectory.resolvePath(fileName).url);
        icon.addEventListener(Event.COMPLETE, onImageLoaded);
        //icon.setPosition(0,0);
        //icon.setSize(320,800);
        sp1.addChild(icon);
        sp1.setSize(650, icon.height);
    
        return sp1;
    }
    
    private function onImageLoaded(e:Event):void
    {
        trace("image height: " + e.target.height + " image width: " + e.target.width);
    }
    

    hope that somethings brightened. Good luck!

  • Windows 8 doesn't remember size and position of the previously open programs

    I hope that if there is no solution for this problem, at least it can be taken as feedback on the next update of WIndows 8.

    The question is:

    I use Windows 7 and WIndows 8 at home to work.

    Now, Windows 7 remembers the size and position of all my previously opened programs (I mean by "programs": EXCEL, INTERNET EXPLORER, FILES, WINDOWS MAIL, WORD, POWERPOINT and others), so that when opens again, they open in the same place and size that they were finally on the closure.

    So I can arrange some programs to occupy some space on the desktop, and each time that I open them they will open in the same place.

    However, WIndows 8 does NOT. When you use the desktop computer in Windows 8 even after organizing the progams to where I like them every time, the next time I open them they will NOT open in the same place or size.

    Or sometimes it does, but only once, but then not do the next time.

    In any case, it is so NOT intuitive and it is a huge concern to be their resizing each time.

    Anyone know WHY? and more importantly if there is a solution? or, where and how can I let Microsoft have this feedback so that the Windows 8.1 update can include a fix for this?

    Additional data:

    System: Windows 8 64-bit (w/Panel touchscreen desktop PC)
    I use my taskbar on the top of the screen in my Windows 7 and Windows 8 PCs.

    Thank you!!

    Hello

    Resize the window of Windows Explorer how you want and then close.

    Next time, when you open the Windows Explorer window, you should remember that the windows of size when it was closed the last time.

    If this isn't the case, then this problem occurs because the registry to the folder options settings are incorrect.

    Note: Serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs.

    (a) delete the following registry subkeys:

    o HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags

    o HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\BagMRU

    o HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\Bags

    o HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\BagMRU

    o HKEY_CURRENT_USER Settings\Software\Microsoft\Windows\Shell\BagMRU

    o HKEY_CURRENT_USER Settings\Software\Microsoft\Windows\Shell\Bags

    D
    elete the following registry subkeys:

    o HKEY_CURRENT_USER\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\Bags

    o HKEY_CURRENT_USER\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\BagMRU

    (b) Re-create the following registry subkeys:

    o HKEY_CURRENT_USER Settings\Software\Microsoft\Windows\Shell\BagMRU

    o HKEY_CURRENT_USER Settings\Software\Microsoft\Windows\Shell\Bags

    Re-create the following registry subkeys:

    o HKEY_CURRENT_USER\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\Bags

    o HKEY_CURRENT_USER\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\BagMRU

    (c) create and then set the registry BagMRU Size value to 5000 in the registry subkeys you created in step b.

    Please post with the State of the question.

  • Have 12 items. Many worked on 8.1, my new laptop has Windows 10. Now the elements photo editing software will open the image in raw, but once I did my settings and try to 'open image', it tells me it "cannot complete my request because an error occurred."

    Well, I typed my question in my title.  I have had absolutely no problem under windows 8.1 to 12 items, but unfortunately the death of my laptop could not be repaired, so I had to get a new 8.1 one and that time windows was no longer available on the laptop I wanted. Who would have the go-getter, comparable to my old and able to handle my photography.  SO I have an I7 processor 2.6 Ghz with 6 MB of cache and 16 GB of Ram with Windows 10 64-bit operating system.

    As indicated above, while the Publisher will open the photos in camera raw, once I made my changes and try to "open image" I get the message he, "it cannot complete my request because an error occurred." I tried uninstalling and reinstalling several times with the same results.  I made also all updates have been made. About 10% of the time, it will open up the photo, but then when I try to record it says that I don't have enough memory.  Do not know how this can be, this configuration of the computer is basically the same as my other, only difference is windows 10.  Not even close to a full hard drive. No other program running. Help!

    reset your preferences - https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html, http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm

  • Why Lightroom changes the date and some of my images on their import

    Why Lightroom changes the date and some of my images on their import

    The problem is that when I try to put photos in subfolders (depending on date) Lightroom some if put in the incorrect date - 10 hours AHEAD of the actual time that the photos were taken (according to the data from the camera).

    This is a bug for a long time in LR: Lightroom: import: folder names arrange by date around midnight of evil when using USB camera

    You use a USB cable to connect to your camera?  Try to take the memory card from the camera, put it into your computer's card reader and import from there.  It solves the problem for most people.

    I tried to move photos into their correct date subfolder, but then of course Lightroom cannot find more!

    Move photos within LR, instead of in the Mac Finder / Windows File Explorer.

  • I bought a single image, and after downloading my image always has the watermark please help.

    I bought a single image, and after downloading my image always has the watermark please help.

    Please follow the following steps

    I bought a stock image and I can't seem to upload the image under a license without the watermark? Please help

  • Showing reconnect to the clone of windows 7, windows get shrunk at ~ 480 height less the taskbar height and position change window

    Is there a way to prevent this dynamic adjustment of the windows height and position.

    We use Realtime Soft UltraMon. It adds a button to title bar of litle to move windows between monitors and duplicates the taskbar and Start Menu to other monitors. Many other features.

    The readjustment of the window was of ultramon. To fix it, we created a disconnect on and reconnect to the script.

    Direct orders are not running the reason for this policy setting. While echo test > c:\temp\test.txt does not, cmd /c echo test > done c:\temp\test.txt. However, cmd /c dir > c:\temp\dir.txt does not work. And environment variables are unable to expand.

    Another approach was to activate only signed powershell scripts and import my certificate to the computer Trusted Publishers store on the statue of gold of code signing. Disconnect then the commands to run and re - connect were:

    cmd /c powershell.exe - folder c:\temp\CloseUltraMon.ps1

    and

    cmd /c powershell.exe - folder c:\temp\OpenUltraMon.ps1

    CloseUltraMon.ps1:

    get-process"ultramon" - ea SilentlyContinue | Out-file "c:\temp\ultramon.status."

    & / Stop "c:\program files\ultramon\ultramon.exe".

    OpenUltraMon.ps1:

    If (Select-String - Path c:\temp\ultramon.status-modele "ultramon") {}

    & "c:\program files\ultramon\ultramon.exe"}

  • How to pass the cat Bkup and files Bkup LR image on the right external drive?

    Hello

    I understand that any changes must be done in LR.

    I want the 2 files 'Safeguards' (files cat LR), and 'Download backups' (duplicate image files) on my drive external hard called ARCHIVE.

    2 screenshots below indicate I messed up and they are all in pictures.

    Moreover, I need to:

    (a) change the name 'Download backups' to 'Image Archive"by 3rd screenshot below and,.

    (b) the "Backups" folder in images renamed 'catalog LR files backups.

    Having said all that, and if she makes everything easier and since I just started all of this, I can get rid of backup files - not a lot of important pictures in them and start fee, but one) how and where, c) if it is easy to make changes, I don't mind going through the motions. It would be too easy to do these things in the Finder, but inside LR... uh...?

    Thank you very much.

    Screen Shot 2015-06-30 at 6.17.21 PM.pngScreen Shot 2015-06-30 at 6.17.57 PM.png

    The following screenshot shows what is on the drive of ARHIVE:

    Screen Shot 2015-06-30 at 6.23.42 PM.png

    Backups can be moved using your operating system. Backups only folders can be renamed using your operating system.

  • I am currently using Adobe Acrobat Pro and cannot use thumbnail images in some of my PDF files. I have not upgraded and have always the possibility to use with certain PDF files, but not all. Help, please!

    I am currently using Adobe Acrobat Pro and cannot use thumbnail images in some of my PDF files. I have not upgraded and have always the possibility to use with certain PDF files, but not all. Help, please!

    Version: Adobe Acrobat 9 Pro

    Windows

    I found the solution:

    In the PDF file, click View > Navigation panel > Pages

    I had to reset panels to view the Pages again.

    Thank you!

    Heather Solis | Operations associate | Crown AFAM Capital, Inc.

    [personal information deleted by Moderator]

  • How to add text to the file .ai and position set, font, size and color

    I want to put multiple lines of text (individually) in .ai file and set the size, font, color, and position for each.

    Preference text should have the origin at a single point (rather than being framed)

    Hope someone can help out me.

    Thank you in advance.

    Hi zblj,

    This should also work in CS6

    var redCMYK = new CMYKColor();
    redCMYK.cyan = 0;
    redCMYK.magenta = 100;
    redCMYK.yellow = 100;
    redCMYK.black = 0;
    
    var aText= app.activeDocument.textFrames.add();
    aText.top = -150;
    aText.left = 50;
    aText.textRange.size = 30;
    aText.textRange.characterAttributes.fillColor = redCMYK;
    aText.textRange.characterAttributes.textFont = textFonts.getByName("MyriadPro-Regular");
    aText.contents = "Your Text";
    redraw();
    

    You can find many other properties textrange, executives of related texts and character in the OMV ExtendScript Toolkit.

    Have fun

Maybe you are looking for