AlignToPage.jsx every page of a document

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

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

Similar Messages

  • How can I take off FINAL DRAFT written in diagonal in the middle of every pages of my document.

    How can I take off FINAL DRAFT written in diagonal in the middle of every pages of my document.

    Then ask whoever sent it to you to remove it and create a new PDF.
    There is one thing you can check first and that’s layers in the PDF. Perhaps whoever created it put that on a top layer and you can just turn it off.

  • Duplicate a Text Field on Every Page of a Document?

    Today I wrote my first vb.net/adobe app.  I managed to open the pdf doc in adobe and create a named text field.  I managed to insert a java script that gets the current date when the document is open and updates the text field.  I would like to duplicate the text field on all pages of the document.  Manually, I can right click on a text field and select duplicate.  I don't see a property or method that allows me to program this.  The field property "page" appears to be read only.  any help would be appreciated.  thanks.
    page
    The page number or an array of page numbers of a field. If the field has only one appearance in the document, the page property returns an integer representing the 0-based page number of the page on which the field appears. If the field has multiple appearances, it returns an array of integers, each member of which is a 0-based page number of an appearance of the field. The order in which the page numbers appear in the array is determined by the order in which the individual widgets of this field were created (and is unaffected by tab-order). If an appearance of the field is on a hidden template page, page returns a value of -1 for that appearance.
    TypeInteger | ArrayAccessRFieldsallExample 1Determine whether a particular field appears on one page, or more than one page.var f = this.getField("myField");
    if (typeof f.page == "number")
    console.println("This field only occurs once on page " + f.page);
    else
    console.println("This field occurs " + f.page.length + " times);

    I also tried the brute force method of moving from page to page and creating a text field on each page.   I used pageNum to changes the page, but, adobe didn't seem to recognize that.  I saw the page change on the screen, but, all of the textfields were created on the first page!

  • Use image as watermark on all pages of a document

    Is there a way to make an image appearing on every page of a document automatically as some kind of watermark ?
    I managed it to appear on one page, but can't find a solution how to get it automatically to other pages as well.
    This was achieved by opening the desired image in Corel PhotoPaint, copying it into clipboard. Then at the AppleWorks document, I inserted it using the paste command (as drawing).

    Insert linked text frames to your document, then drag-and-drop the text
    from your source document.
    You refer to converting text docs into drawings, do you ? If so, what do you mean with "insert linked text frames", can you explain me how this is done ?
    Sorry for this question, probably it is quite easy, but I have the German version of AW and therefore menu labels may be named differently even translated word by word
    The alternative is to create your watermark object and paste it as a free
    floating object onto each page. Position it where you want it, and send the
    object to the back.
    Has this to be done when writing the document ? So when I know I have a three page doc, I need to add the image three times on each page manually ?
    Unfortunately this would not do the trick, since I'm creating a template for users just wanting start typing without taking care about the layout.

  • Line tool marks are appearing on every page

    I received a mortgage disclosure statement that I have to sign. There is no security on the document. When I use the Line Tool to check off some of the boxes though, the lines appear on EVERY page of the document. I only need it on ONE page. I checked some of my other PDF files and this problem is not happening on those documents. I am using Acrobat 9. I would appreciate any help on this.

    I'd rather not share it because it's mortgage application with lots of personal data on it. It was a PDF file E-mailed by the mortgage company to me. I have to sign a bunch of pages and return.
    I guess I could print it as an image to a new PDF and then sign and comment everything that way.
    I'm trying to scan all the manually signed documents now, and it is taking forever because it is so many pages.

  • As a writer I'm using Pages to write my documents but the title shows up on every page.   How do I set-up my page so that it shows up on only the first page?

    As a writer I'm using Pages to write my documents but the title shows up on every page.   How do I set-up my page so that it shows up on only the first page?

    Don't put it in the Header.
    Peter

  • Every time I add a page to my documents, my buttons reset. How can I prevent this from happening?

    I am using InDesign CS5. I have a very large document (698 pages) that has several buttons saved on each page.
    I used the automated Table of Contents feature to create all of the destinations. Using the buttons dialog box, I select the specific page the document needs to go to.
    I need to add pages to this document, but every time I add a page, all of the bookmarks default to the very first link in the list. How can I get prevent this from happening?
    If I can't stop this from happening because I used the TOC feature to create the destinations, how can I quickly and easily move forward to add pages to the document. These pages will be inserted throughout the document.
    Thank you.

    Put on shoe.
    Take one shoe-lace in each hand.
    Lay them across each other.
    Then place one of them under the first.
    You now have the first fasting.
    To make the loops, again take each shoe-lace in each hand.
    Fold one of them double into a loop and hold the loop with the other hand.
    Take the second shoe-lace and fold it around the loop and insert the second loop in the space you just created under the first loop.
    Fasten the loops by dragging them in opposite directions.
    How did I do? Clear enough? (English is not my first language by the way).

  • How to Add Header and Footer to appear on every page

    Hi,
    I am using Robo Help 7 for generating Help pages. I have to import a wrod document an publish it as online web help html document. I have query as to how added header and footer be configured to reflect on each and every page. I am using Robohelp for first time and tried various options, but am unable to get the above done.
    Thanks,
    Pallavi

    Hi there
    Display your Topic List pod. Press Ctrl+A to select all the topics. Then right-click the selection and choose Properties. From the Properties dialog click the General tab. There you may choose the Template/Master Page. When you click OK all the topics should now be associated with the Template/Master Page.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Using Pages to edit document created in Word...Help!

    Hi! I'm fairly new to Mac and am experiencing much frustration while trying to edit a Word-created document in Pages. This document contained page numbers in the footer that I need to edit. Unfortunately, I am unable to change the page numbers in Pages. I try to click on the numbers and it doesn't do a thing. When I bring up the footer section in Pages, the text box falls just to the left of the page number.
    Any input would be appreciated SO much! I'm getting tired of borrowing a friend's computer to do work that I'm pretty sure I can do on my Mac.

    j,
    Welcome to Apple discussions.
    This issue comes up rarely, but it is a known problem. There's something odd about how some Word files get translated into Pages format -- the page numbers get a little screwy. There are two things I can think of to try: 1) Click on Format > Advanced > Make Master Objects Selectable. If this works, you should now be able to select the page number ... or 2) Insert a small rectangle, wrap off, colored white, over the page number, then put a proper page number in either the header or the footer.
    Just so you know, I receive Word docs all the time with page numbers in them, and they translate fine. But every now and then I hear tales of the same problem you're having.
    -Dennis

  • How to place two tables at a time in every page in a smartform?

    Hi All,
       I have a requirement in a smartform where i need two tables in every page. These tables should repeat on every page with regard to the data thats getting populated in it.If one table has more data it should not push the second table completely from the page.
    Can anyone please give me a solution.

    Hi
    If you see in real time printing of Smartform documents like PO or SO or Invoice
    we will see two tables data one is header data which will have a single record per document and Item data which will have mulitple records.
    So header data is fixed in all pages and the Item data is printed in MAIN window and overflows to other pages depending on the data.
    SO Item table data will be printed in number of pages where as the Header table data will pe constantly printed on the header part(top part) of every page.
    so you can handle the 2 internal tables data as above
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Add a field to the last page of a document file only

    Hello,
    I currently have a script which will add signature and text fields to the first page of a document.
    The script is required to specify the "last page" of the document and not the page number, as each file will vary with the number of pages.
    The script is in run in batch processing on multiple files which are not open (usually 50 at a time).
    If anyone can please advise how to modify the script I will be most grateful.
    // Create Date field dynamically for employee signature field
    var f = this.addField("Todaydate", "text", 0,
    [60, 54, 135, 75]);
    f.userName = "Today's Date";
    f.value = "Automatic Update";
    f.readonly = true;
    f.fillColor = color.ltGray;
    // Create signature field dynamically for employee
    var f = this.addField("mySignature", "signature", 0,
    [120, 85, 330, 105]);
    f.setAction("OnFocus", "var f = this.getField('Todaydate'); f.value = util.printd('d/mm/yyyy', new Date());");

    Thank you very much for your help, I really appreciate your quick response.
    The script has been modified as you suggested and the fields are now added to the last page of each document and is working perfectly.
    I have included the modified script as follows for reference:
    // Create Date field dynamically for employee signature field, add fields to the last page of every file
    // Determine the last page of this document
    var page = this.numPages - 1;
    var f = this.addField("Todaydate", "text", page,
    [60, 54, 135, 75]);
    f.userName = "Today's Date";
    f.value = "Automatic Update";
    f.readonly = true;
    f.fillColor = color.ltGray;
    // Create signature field dynamically for employee
    var f = this.addField("mySignature", "signature", page,
    [120, 85, 330, 105]);
    f.setAction("OnFocus", "var f = this.getField('Todaydate'); f.value = util.printd('d/mm/yyyy', new Date());");

  • How do I create a text box or form field on the top of every page of a pdf in XI Pro for titles?

    I generate pdf content from another program and then in Acrobat XI Pro I want to add titles to each page.
    I'm thinking I can use form fileds and duplicate across all pages but how do I make each form filed unique?
    Or could i add a form field to a background and then apply the background to every page in the pdf?
    thanks.

    This type of thing is probably best done with a script, either by adding a uniquely named field to each page or by spawing a template page that contains just the form field (like your last idea). There's not a built-in method for doing this. If you add a blank page to the beginning of the document, create the field in the location you want, and make the page a template, you can run the following script in the interactive JavaScript console (Ctrl+J):
    // Get a reference to the template
    var t = getTemplate("Field");
    // Spawn the template on each page, automatically renaming the fields
    for (var i = 1; i < numPages; i += 1) {
        t.spawn({nPage: i, bRename: true, bOverlay: true});
    To run the code, select it all in the console and press Ctrl+Enter, or Enter on the numeric keypad.
    To make a page a template in Acrobat 11, make sure you're on the page you want to make a template and select: Tools > Document Processing > Page Templates
    and enter a name. I used a name of "Field" in the example above, but you can use anything.
    To create a blank page, you can use the following script:
    newPage({nPage: 0, nWidth: 8.5 * 72, nHeight: 11 * 72});
    for an 8.5"x11" page. Adjust the numbers to match whatever your page size is. It will be added to the beginning of the document and you can then add the field and make it a template. Once the fields have been added, you can remove the template page.

  • In the Finder, how do you select Pages '09 from Pages 5.0 documents

    Pages 5.0 came pre-installed on my new iMac / Mavericks computer. Before that I had  worked with Word for Mac. After a while I discovered the now well-known flaws in Pages 5.0 . I read discussions on the internet from which I concluded I could better continue with Pages ’09 which I had available from another (legal) source but never used.
    Pages ’09 appears to work fine for me but Pages 5.0 keeps interfering as being the standard program designated to open “all documents of this type” (Get Info / Command I). Thus, documents made and saved in Pages ’09, may be inadvertently saved in Pages 5.0. At least, this is what I think is happening. You cannot see which is which since both versions have the extension “pages”.
    I have a saved-search result comprising all files with the “pages” extension and I want to select all Pages 5.0 documents therein and change the whole lot, if possible with one key stroke, to show that “all documents of this type” must be opened in Pages ’09. I cannot find the way to work this out. Who helps?

    My personal experience is as follows:
       tag:Blue will find every document that has a blue tag, regardless of tag name.
       tag:Pages '09 will find only documents with this specific tag name.
    The exception to the second example is when you have tagged a few files with a specific tag name, then revisit the Finder Preferences and decide to change the tag name in place. This forces the tag name to update to the new name on all of the files bearing the prior tag name, and these will be found in the new tag name search.
    Tag colors but not tag names are available in Finder views of documents.
    You can even create Finder Smart Folders that park in the left column of your Finder window. These have special search criteria built in such as all documents that have a tag containing the string, “Pages '09.” When you click on this Smart Folder, a Finder window appears with all of your Pages '09 documents shown, providing they are appropriately tagged beforehand. You would need to first enable the tag attribute.
    OS X Mavericks: Create or Modify a Smart Folder
    I type just an arbitrary letter to trigger the sub-toolbar in step 3. I then click the + symbol, and set Kind is document. I click the + symbol again, and this time, I ignore Last opened date and select Other... from the bottom of that selection list. Scroll down until you find the attribute Tags and then on the right, select it, so it will show in the menu. Click Ok. Now, click on the Last opened date and instead choose Tags matches Pages '09. Now, proceed with step 6. Change the name from Searching "your login directory" to an appropriate string that will fit in the left column of your Finder window, e.g. Pages 09 docs.
    The application version that created the document is not stored in the Pages documents, and Apple has chosen to use the .pages extension, regardless of compatibility or application version. This means that neither Finder nor human eye can discern the version of Pages that created the document. The only way off that island is programmatically checking the document contents which differs slightly between Pages ’08, ’09, and v5.

  • Stamps in the same place on every page

    Lets say we have a 10 page electrical wiring diagram document. On each page there's space for our client's logo and address. As a service, we are now thinking of adding that logo and address before we print the document and send it to our client. I know how to add stamps, but I can't figure out how to place the stamp on just one page, and then automatically have it placed in the exact same place on all pages. Is that possible? Do I have to place the stamp on every page manually? Then they will not end up in the same position every time!
    This is quite urgent. If anybody has a solution, please let me know.
    I have Acrobat Professional 8
    Lena

    We do something similar using Batch Processing. The stamp is placed on a blank page PDF in the position we want it to appear on the document. We then run a Batch process that opens the file, adds the watermark (the PDF file containing the placed stamp, flattens the layers, and prints the file. We don't save but there is an option to save the file with the stamp on when you set up the batch process.
    Setting up the Batch Process can take a moment, especially making sure the stamp will appear where you want it, but it makes things very easy once you have it set up.
    HTH

  • SSRS Table/Row Header does not repeat on every page when exported to PDF

    Hi, I have a SSRS Report in which the rows are grouped and the Tablix has a Table/Row header. I wanted the header to repeat on every page for a group because sometimes the data from the group would be more than one page.
                                   To achieve this
                                   - I went to Advance mode by clicking the arrow next to column group
                                   - Selected the Header Static column from Row Group
                                   - Changed the following properties
                                                    - KeepWithGroup: After
                                                    - RepeatOnNewPage:
    True
                                                    - The header columns
    are set to not grow.
    The problem only occurs when the nested grouped data in one of the columns goes over a page. The following pages don't have any header.
    So half of the time the header row repeats but when the nested grouped data extends over one page the header does not show. Problem only occurs when rendered to pdf.
    I found this line "Headings are repeated on each page only if there is sufficient room" in SQL 2008 version. But I could not find it in later versions of sql server. So does that mean it is fixed

    Hi Mumblesnz1,
    According to your description, you specify value of RepeatOnNewPage as True in the report. When exporting the report to PDF, one grouped data extend over one page, and tablix header display on first page, not repeat on following pages.
    As we tested in our environment(SQL Server 2008(SP3)-10.0.5520.0(X64)), it works as you required. We set KeepWithGroup as After and RepeatOnNewPage as True. After exporting to PDF, the grouped data display on two pages, and tablix header repeats on each
    page. Since we haven’t found any document mentioned this issue is fixed on which version, I suggest you try to install the service pack 3 for sql server 2008.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

Maybe you are looking for

  • Regarding jasper reports can any one help me?

    Hi, I am working on jasper report1.2.5. I created jrml file using iReport Tool (1.2.5). while I am tyring to compile this jrxml file into solaris I found the following error. java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/env/IName

  • GRIR Clearing - Assigment Feild to be replaced by PO numbers.

    Dear Friends, We have a very peculiar situation, whereby in the GR/IR Clearing Account, the sort key was mentioned as 001 (Posting Date), instead of 014 - Purchase Order + Item. The result is that in the Assignment Feild instead of Purchase Order No.

  • Content Services Configuration Assistant failde OCS 10.1.2

    When it gets to the Oracle Content Services Configuration Assistant, this one fails. Seeing the log file in "home/oracle/product/10.1.2/ocs_1/apps/content/log/ContentMTConfig.log" the problem seems to be in the UploadWorkflowProcessDefinition: ******

  • Vendor Master- Single Vendor or mulitple vendor code for diff address

    I have a confusion in vendor Master 1. How to handle a problem of single Vendor with its presence in multiple cities. For eg., a vendor ABC has office in banglore, Mumbai, Pune and Chennai. 2. How to handle a vendor which is having multiple offices i

  • Getting an error missing right paranthesis

    merge into TEMP_RECORDS_MED_DATE_0001  Tmpr using (select callstart,seqno,totduration,callend,callnumber,mplimsi,mplmsisdn,FILEID                   ,   FILENAME                ,   SLNO                    ,   IMEI                          ,   UTCTIMEO