Thread View: adobe.scripting.indesign
2 messages
2 total messages
Started by Yves_Davignon
Wed, 25 Mar 2009 12:27
AlignToPage.jsx every page of a document
Author: Yves_Davignon
Date: Wed, 25 Mar 2009 12:27
Date: Wed, 25 Mar 2009 12:27
9 lines
875 bytes
875 bytes
I use a script to place multiple pdfs in Indesign CS4. It works fine but does not center them to the page. I then go to every page, select the item than run AlignToPage.jsx for every page. I'm trying to modify the script so every placed pdf of all the page will be align to page (center h/v). Can anybody help? Tx Yves
Re: AlignToPage.jsx every page of a document
Author: Glen_Bal
Date: Thu, 26 Mar 2009 09:36
Date: Thu, 26 Mar 2009 09:36
21 lines
1199 bytes
1199 bytes
Yves,
I don't know the scripts but i suggust to create a script that after each pdf it places, selects that placed pdf or give the placed pdf as a variable to the AlignToPage and run it.
Because I never tried running another script from a script, i put "aligntopage.jsx" in a function.
for (..."each pdf"...){
...
var myPlacedPDF = place(...);
alignToPage(myPlacedPDF);
}
function alignToPage(myPlacedPDF) {
...
}
This is more to give an quick idea.
If there is someone who experimented with scripts in scripts i would like to know more :-)
Greetz,
Glen
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads