Copy of Doc1 and paste into Doc2 - Center of page
Hello to everyone on the forums,
I use the code below to open "doc1" and paste its contents into "doc2.
Could someone please help me ensure doc1 is glued in the Center of the doc2?
Doc2 is larger, and objects stick currently biased, flower on the side of left hand and Center on the axis y
If there is a way to stick directly to the Center? or otherwise, all move to the Center after pasting?
Thank you!
------------------------------------------------
Open the external doc BMDFile
var BMDFile = "CheminMonFichier".
App.Open (BMDFile);
var doc1 = app.documents [0]; the external doc BMDFile
var doc2 = app.documents [1]; currently open blank doc
for (i = 0; i < doc1.pages.length; i ++)
{
If (doc2.pages.length < i + 1) {}
Doc2.pages.Add ();
}
to avoid changing the order of the Group
var myObj = new Array;
myObj = app.activeWindow.activePage.pageItems;
app.activeWindow.activePage.groups.add (myObj);
two copies
Doc1.pages [i].pageItems.everyItem (). Duplicate (Doc2.pages [i]);
all separate
{with(App.documents[1])}
While (groups.length! = 0) {}
groups.everyItem () .ungroup ();
}
}
};
close the external BMDFile doc, do not save the changes
app.activeDocument.close (SaveOptions.no);
Hello
2nd parameter of group.duplicate(to, by) method ==> which is an array - amount to compensate for the new position of the original group.
If your position is correct, you may need to use [mX, 0] ==> where mX is a different between the center of doc2.pages [0] and doc1.pages [0].
I mean
//... var mX = (doc2.pages[0].bounds[3] - doc2.pages[0].bounds[1] ) / 2 - (doc1.pages[0].bounds[3] - doc1.pages[0].bounds[1] ) / 2;
and
//... doc1.pages[i].pageItems.everyItem().duplicate(doc2.pages[i], [mX, 0]);
Jarek
Tags: InDesign
Similar Questions
-
How to copy and paste into the search engine does not work?
How to copy and paste into the search engine does not work?
It should be.
Restart your Mac and try again.
Other than that, make sure that OS X is updated.
Open the App Store, and then select the updates menu.
-
I select a photo of my photos and copy and paste into paint. I then crop the image to the size I want. My question is why slope I copy and paste the result back in my photos. I select all, then copy but I cannot pick up in my photos.
'Wally Wallis' wroteI select a photo of my photos and copy and paste into paint. I then crop the image to the size I want. My question is why slope I copy and paste the result back in my photos. I select all, then copy but I cannot pick up in my photos.
Use the file > save as options -
How to copy phone numbers and paste them into the Dialer?
Hello everyone!
I posed in the title, how can you copy phone numbers and paste them into the Dialer to make calls?
Thank you!
I can't send a report - I am a normal user like you but I was help other owners for awhile better as I can - to contact Sony care use this link http://www.sonymobile.com/global-en/support/contact-us/
-
When I copy and paste into my Corel Draw, the image is distorted with the cutting tool
Original title: the cutting tool false image
I used snipping too long without problem. Now all of a sudden (only when I copy and paste into my Corel Draw) the image is distorted. I use windows 7 64-bit.
Hi Diana,
1 have you ever done any recent hardware or exchange of software on your computer before the show?
2 have you tried to check the issue with another application?
3. what files are copy you / paste in Corel Draw, using the cutting tool?
If the problem is specific to Corel application, then I suggest you to contact the Corel Support for assistance.
Corel communities:
http://www.Corel.com/Corel/pages/index.jsp?PgId=800085
Supported Corel:
http://www.Corel.com/Corel/pages/index.jsp?PgId=800170
For reference:
The cutting tool: frequently asked questions: http://windows.microsoft.com/en-in/windows7/snipping-tool-frequently-asked-questions
Snipping Tool to capture screen shots:
http://Windows.Microsoft.com/en-in/Windows7/use-Snipping-Tool-to-capture-screen-shots
I hope this helps.
-
I can't copy and paste into the InDesign application.
I can't copy and paste into the InDesign application. He worked a couple of days.
OS version? How do you paste copy operations? Menu, shortcut, right-click?
Have you tried trashing the prefs? See replace your preferences
-
can moving layers between files, be done apart from copy and paste into a new layer?
moving layers between files
can it be done apart from copy and paste into a new layer?
If you want to copy (not move) a layer to another file, click and drag the layer in the layers Panel on the other image.
'Move' means remove the layer from the source file.
-
Where is the copy or cut and paste the toolbar?
Where is the copy or cut and paste the toolbar? How can I register my toolbar with the bold, italic, buttons etc.?
Hello
1 are. what application you referring?
If you use word, then check out these links and check if it helps:
http://Office.Microsoft.com/en-us/Word-help/create-a-custom-toolbar-HP003085155.aspx
http://Office.Microsoft.com/en-us/Word-help/customize-your-toolbars-and-menus-RZ001003635.aspx
It will be useful.
-
Is it possible to copy a model and paste it in another project?
Is it possible to copy a model and paste it in another project? I tried this without success. Am I missing something, or is it just not possible?
Thank you
BRUC
No, but you can import one project inside another then use this model as any other property. Things are very complex, you can collect files for the model first.
-
work copy and paste into iTunes 12
How can I copy the work of a song and paste it into the work for another? In addition, in older versions o iTunes you can scroll the playlist and the cover of the album would scroll. Y at - it a display that allows only 12 iTunes?
Art Starr wrote:
How can I copy the work of a song and paste it into the work for another? In addition, in older versions o iTunes you can scroll the playlist and the cover of the album would scroll. Y at - it a display that allows only 12 iTunes?
Right click on the song, select 'get info '. Go to the tab of the work. Click on the image, and then press command + C to copy it. Find the song you want to paste the artwork, right-click on it, select "get info." Go to the tab of the work. Press command-V to paste.
To answer your last question, Cover Flow (what you describe) is no longer in effect.
-
Copy and paste into Vista Winmail.
Hello
How can I copy and paste a complete email, text, AND images in Vista Winmail? When I try, I highlight text and images and copy all the t5he highlighted text and images, but when I paste into Word or Notebook, the text has been copied, with empty spaces where the photos were.
Happy to help you!
Steve
-
File Word copy and paste into Indesign - the easy way?
Hello
What is the easy way to copy multiple pages with a text. file doc.x (Office Word) - and paste it into Indesign, and then change everything in Indesign?
Place the Word document using a primary text block so that the pages of reflow. You can also combine styles.
-
Takes are silent when copied and pasted into the new track
After recording several takes of a vocal part and a model gliding around how I like it, I decided to dub the voices and use another part of the (unused) takes.
I created a new title in doubles (CMD - D) and pasted the vocal track (including), but the new double track is silent. I can see the track and everything going out there and tried to remove plugins, copy and paste in different ways, but the track and just stay silent. I can see them all here in the new track, and all that I can see, they should be heard.
I tried this search anywhere online and cannot find any mention of this problem anywhere. Is this just a bug? I forgot something?
What version of logic you use.
It worked well here with 10.2.4
Also how do you 'stick it '?
After a screen capture of your page to organize with open mixer
-
See above
I used to be able to copy and paste, but since the upgrade can not
toolbars is no longer available on the top
How copy and paste emails or chat with a file in windows, sites like Match.com?
> toolbars is no longer available on the top
Assuming that you are referring to Internet Explorer missin the Menu bar...
Right-click on an open under the address bar > click bar on the popup box.
-
Cannot add gradient to the sphere of shape and can not copy and paste into Photoshop?
I just want to add a gradient to the circles of my calendar. Still the same window appears saying that it is not directly editable. Any reason why the step does not work? Another concern is that forms don't simply copy a paste in photoshop as they usually do in other adobe software, it feels like a layer must be included to add or delete anything. How can I do the whole copy and paste in photoshop easier for me that I am new to it? Any help would be appreciated, thank you!
Hi lucyl,.
Thank you that you have tried.
I'll tell you that in your screen you sent, please check it's going up in the Finder menu bar.
Click on Go-> Go to folder
Type ~/library
Click OK
Inside the library folder, you will find a folder with name preferences.
Open this folder
Inside this folder, you'll find another folder named Photoshop CC 2015 parameters
Rename this folder in 2015 CC Photoshop settings_old.
Open Photoshop and try again.
Here is the link that will help you access to / find the library user on MAC: library user access hidden files. Mac OS 10.7 and later
Concerning
Jitendra
Maybe you are looking for
-
Blackberry enterprise server configuration will not accept the connection.
Original title: remote terminal BlackBerry or resource will not accept connection Blackberry enterprise server configuration
-
Dell XPS 8700 - How to install Windows XP on it
Hello I have read on this forum that it was possible to install Win XP on XPS 8500 and wanted Trailblazers thanks! I was wondering if someone has even tried to install XP on the 8700? I should receive my XPS 8700 with Win 7 Premium on this topic next
-
Cannot transfer the file to WCS 5508 - Code file transfer failed - unknown error - refer to log
Hi all This is my first time here posting. I have some difficulty to transfer files to my WCS 5508. My intention is to upgrade to 6.0.196.0 to 7.4. We recently bought 2602i access points and we need to update our controller software so that the contr
-
Sound notification of blackBerry Smartphones
My 8110 pearl has been giving audible notification for network service and gps service, I had to do a reset and now no more audible notification how do I get it back
-
How to fix Vaio Care blocking when creating recovery discs?
I have a VPC3WFX which seems to work fine under the current Windows 7 overall. Running Viao care gives a certificate of good health for the disc and other parameters. I am able to write to DVD with the DVD burner. Problem is when I go to Vaio Care to