Question - How to Revise a Javascript for Printing a Dynamic Date in the Right Corner of the Page

Hi Everyone,
I am using Adobe Professional 8.0.
How do I revise the JavaScript (not created by me) below in order to execute the two (2) following changes:
1) Dynamic Print Date - 1.0 inch Up and 1.0 inch Over from the Right Corner of the Page.
2) Dynamic Print Date - 0.5 inch Up and 1.0 inch Over from the Right Corner of the Page.
The JavaScript I want to revise is the following:
/* Put script title here */
// Add field to each page of form
var inch = 72;
for (var p = 0; p < this.numPages; p++) {
// create rectangle quads for field
var aRect = this.getPageBox( {nPage: p} );
aRect[1] = 1.0*inch;
aRect[3] = aRect[1] - 72; // and 24 points high
// now construct text field to fill with date information
var f = this.addField("PrintField", "text", p, aRect )
f.delay = true;
f.textSize = 10;
f.textFont="Arial,Bold";
f.textColor = color.black;
f.alignment = "right";
f.readonly = true;
f.print = true;
f.hidden = true;
f.delay = false;
var myWillPrintScript = 'var f = this.getField("PrintField"); \r'
+ 'f.hidden = false; \r'
+ 'var d = new Date(); \r'
+ 'var year = d.getYear()+1900; \r'
+ 'f.value = "Print Out Date:" + (d.getMonth()+1) + "/" + d.getDate() + "/" + year; \r';
var myDidPrintScript = 'var f = this.getField("PrintField"); \r'
+ 'f.value = ""; \r'
+ 'f.hidden = true; \r';
this.setAction("WillPrint", myWillPrintScript);
this.setAction("DidPrint", myDidPrintScript);
Thank you for your help!
Tracy

this.addWatermarkFromText({
cText: util.printd("mmmm dd, yyyy", new Date()),
nTextAlign: app.constants.align.right,
nHorizAlign: app.constants.align.right,
nVertAlign: app.constants.align.bottom,
nHorizValue: -72, nVertValue: 72
Will insert the current Monday/Day/Year as a text watermark at the bottom of every page of a document, 1 inch up and 1 inch in from the right corner.

Similar Messages

  • On the most upper left of the Title Bar (the part where the x box is on the right side) where the Firefox icon should be (on the upper left corner) I have a printer icon instead. Why did that happen and how do I change it? Thanks for any help.

    On the most upper left of the Title Bar (the part where the x box is on the right side) where the Firefox icon should be (on the upper left corner) I have a printer icon instead. Why did that happen and how do I change it? Thanks for any help.

    I don't actually have an answer for you, but ditto on changing things that aren't broken. Drives me crazy!!

  • How to print a company logo on top right corner in pdf

    Hello together,
    how can I print a company logo in a PDF-Document (Print Version; 0Analysis_Pattern_Export) on the top right corner. I created a own web template which just contains the company logo and included this template in the ZAnalysis_Pattern_Export (a copy of 0Analysis_Pattern_Export). I don't know what I have to change to get this logo (I have the path of the MIME and all that...) at the top right corner in the PDF-Document. In the own template I can change it from left, through middle to right, but without any consequences to the final PDF-Document.
    Thanks in advance and kind regards
    Boris

    Hello Beat,
    thanks for your answer. But maybe I described it wrong. I have the logo still on my PDF-Document. I just want to have it on the top right corner and not, like it is now, on the left side of the paper. So the only question is how to move the logo to the top right corner?
    Kind regards
    Boris

  • Help!  How do I download software for a HP Laserjet Professional P1100? I keep getting the same message when I have downloaded the file "Your security preferences allow installation of only apps from the Mac App Store and identified developers" Help!

    How do I download software for a HP Laserjet Professional P1100? I keep getting the same message when I have downloaded the file "Your security preferences allow installation of only apps from the Mac App Store and identified developers" Help!

    You can change the settings in Security & Privacy to "Anywhere"...
    That should work... as to whether the printer driver will work, that's another question.
    Good luck,
    Clinton

  • Urgent, SOS for help: How to show the pdf file name at the right bottow of the page?

    I want to show the pdf file name at the right bottow of the page for filing purpose, anybody knows anything?
    I know it can be showed at the left bottom through adobe printer, but i need it to be at the right bottom.
    thanks.

    The result is a UIWebView that displays a blank page. No errors occur in the UIWebView delegate method. The thing is that data has the correct length, in bytes, for the PDF I am trying to display, and I also get the pdf file in Library/Application Support/iPhone Simulator/4.3.2/Applications/ Does anyone have an idea as to what might be going wrong here or how I can better debug this problem?

  • HELP - hi with apple Configurator why does it show with a yellow triangle on the right side of the screen what am i doing wrong for the ipads not syncing or whatever and how do i fix that?

    HELP -- hi with apple Configurator why does it show with a yellow triangle on the right side of the screen what am i doing wrong for the ipads not syncing or whatever and how do i fix that? although i have looked online to try and figure it out and here is the website i found is this the stuff i need to do to fix this? is this site what i need to do to fix this? http://edtechstandish.wordpress.com/what-ive-learned-about-apple-configurator-so -far/  Thanks

    Sorry but I don't know anything about this.  But you might have better luck posting this question over ing the iPad in Business and Education forum here: https://discussions.apple.com/community/ipad/ipad_in_business_and_education?view =discussions.

  • 1) How to Boot from SAN for T4-1 Server with Solaris 11.1 OS on the disk? 2) How to SMI Label/Format a disk while OS Installation in Solaris 11.1?

    FYI....boot from SAN is required for physical server (T4-1) (not OVM).
    1) How to Boot from SAN for T4-1 Server with Solaris 11.1 OS on the disk?
    The SAN disks allocated are visible in ok prompt. below is the output.
    (0) ok show—disks
    a) /pci@400/pci@2/pci@0/pci@f/pci@0/usb@0, 2/hub@2/hub@3/storage@2/disk
    b) /pci@400/pci@2/pci@0/pci€a/SUNW, ezalxs@0, l/fp@0, 0/disk
    e) /pci@400/pci@2/pci@0/pci@a/SUNW, ealxs@0/fp@0, 0/disk
    d) /pci@400/pci@2/pci@0/pci@8/SUNW, emlxs@0, l/fp@0, 0/disk
    e) /pci@400/pci@2/pci@0/pci@8/SUNW,enlxs@0/fp@0,0/disk
    f) /pci@400/pci@2/pci@0/pci@4/scsi@0/disk
    g) /pci@400/pci@1/pci@0/pci@4/scsi@0/disk
    h) /iscsi—hba/disk
    q) NO SELECTION
    valid choice: a. . .h, q to quit c
    /pci@400/pci@2/pci@0/pci@a/SUNW, ealxs@0/fp@0, 0/disk has been selected.
    Type “Y ( Control—Y ) to insert it in the command line.
    e.g. ok nvalias mydev “Y
    for creating devalias mydev for /pci@400/pci@2/pci@0/pci@a/SUNW,emlxs@0/fp@0,0/disk
    (0) ok set—sfs—boot
    set—sfs—boot ?
    We tried selecting a disk and applying sfs-boot at ok prompt.
    Can you please help me providing detailed pre-requesites/steps/procedure to implement this and to start boot from SAN.
    2) How to SMI Label/Format a disk while OS Installation in Solaris 11.1?
    As we know that ZFS is the default filesystem in Solaris 11.
    We have seen in the Oracle documentation that for rpool below are recommended:
    - A disk that is intended for a ZFS root pool must be created with an SMI label, not an EFI label.
    - Create root pools with slices by using the s* identifier.
    - ZFS applies an EFI label when you create a storage pool with whole disks.
    - In general, you should create a disk slice with the bulk of disk space in slice 0.
    I have seen the solution that using format -e, we change the labelling but all the data will be lost, whats the way to apply a SMI Label/Format on a rpool disks while OS Installation itself.
    Please provide me the steps to SMI Label a disk while installaing Solaris 11.1 OS.

    Oracle recommends below things on rpool: (thats reason wanted to apply SMI Label)
    I have seen in the Oracle documentation that for rpool below are recommended:
    - A disk that is intended for a ZFS root pool must be created with an SMI label, not an EFI label.
    - Create root pools with slices by using the s* identifier.
    - ZFS applies an EFI label when you create a storage pool with whole disks.
    - In general, you should create a disk slice with the bulk of disk space in slice 0.

  • How to create  a datasource for 0COSTCENTER to load data in csv file  in BI

    how to create  a datasource for 0COSTCENTER to load data in csv file  in BI 7.0 system
    can you emil me the picture of the step about how to  loaded individual values of the hierarchy using CSV file
    thank you very much
    my emil is <Removed>
    allen

    Step 1: Load Required Master Data for 0CostCenter in to BI system
    Step 2: Enable Characteristics to support Hierarchy for this 0Cost Center and specify the External Characteristic(In the Lowest Node or Last Node) while creation of this Characteristic InfoObject
    Step 3: On Last Node of Hierarchy Structure in the InfoObject, Right Click and then Create Hierarchy MANUALLY by Inserting the Master Data Value as BI dosent Support the Hierarchy load directly you need to do it manually....
    Step 4: Mapping
    Create Text Node thats the first node (Root Node)
    Insert Characteristic Nodes
    Insert the Last Node of the Hierarchy
    Then you need to create a Open hub Destination for extracting data into the .csv file...
    Step1 : Create the Open Hub Destination give the Master Data table name and enter all the fields required....and create the transformations for this Open Hub connecting to the External file or excel file source...then give the location on to your local disk or path of the server in the first tab and request for the data...It should work alright let me know if you need anything else...
    Thanks,
    Sandhya

  • How to enable Fullfillment set menu in the Right click at the line level for a responsibility?, by default it comes for OM ADMIN.

    How to enable Fullfillment set menu in the Right click at the line level for a responsibility?, by default it comes for OM ADMIN.
    for this responsibility i need to have teh sets enabled. how to do teh same.
    similar to OM ADMIN as shown below:
    Kindly advice on teh steps. i believe its some menu /function inclusion can you pl share teh pointer.
    regards,
    bala

    AFAIK then there is no way to do that system wide. You can only do that via userChrome.css or an extension like the Menu Editor per profile .You can install extensions globally, but the user will have to enable them anyway. That is not required for userChrome.css code.

  • Ordering Calendars for delivery in different countries?  Live in the UK and want to order a calendar for printing/delivery in Canada.  However - can't change the default country -even changed the address in my Apple Account, no result.  Any suggestions?

    Ordering Calendars for delivery in different countries?  Live in the UK and want to order a calendar for printing/delivery in Canada.  However - can't change the default country -even changed the address in my Apple Account, no result.  Any suggestions?

    The general rule is that the shipping address must be in the same country as the billing address of the credit card used to order. However, you can try changing the Print Products store in iPhoto's Advanced preference pane to Canada and try ordering again.
    Happy Holidays

  • How do you adjust Firefox to print what is on email page without adding a 1 inch left marghin to that page as it cuts off some of the right side of the page?

    When I receive an email the page often has a certificate that I would like to print. Using the print function at the top of the page brings up the email as a page as it looks in my web email. When I hit the print button on that page there is always a 1 inch margin added to the printed page cutting off the right side of the desired page to be printed.
    My printer accepts what ever I send it from word, pdf files as they appear on the screen, Why doe Firefox not send the same images as is displayed to the printer?
    This seems to occur whenever the screen shows an image that is almost border to border and not text. When a margin is part of the email message or it is text this doesn't seem to occur.
    HELP Please. I really need to be able to print what is displayed to print the proper document.
    Thanks
    Bob Ferguson
    Sonoran Consulting & Finance, LLC

    Some pages add their own margin to the minimum margin set in Page Setup. First you might reduce the margin here:
    Alt+f (displays the classic File menu) > Page Setup > Margins & Header/Footer tab
    Second, you could try using Shrink to Fit. However, if the image is a background image rather than part of the content of the page, that might not have any effect.

  • How to show the login user Id in the upper right corner of each page?

    Hi,
    I was wondering how to show the login user Id in the upper right corner of each page?
    thanks so much!
    cchu

    Cchu,
    The easy question first: applying a style to the welcome message. If you look at the page source, you'll see that #WELCOME_USER# is expanded to <div class="app-user">Welcome: DEMO</div> So to change the style of the message, you need to tweak the style of the app-user div in your CSS, or override it in a style block in your HTML header.
    Now, the tougher question: why the text is wrapping for you. And, really, without seeing your entire page, I can't give a full answer. But I'd suggest that what's most likely happening is that the table column you're putting it in is too narrow, so it's wrapping; try replacing the td tag with <td nowrap="nowrap"> This will force the column to be wide enough to display the full message, but might result in weird formatting elsewhere on the page (depending on what all is in your table).
    -David

  • How can I reduce the size of a photo proportionally.  With my old Mac mini I was able to place the pointer on the bottom right corner  hold the shift key until I achieved the desires size.

    How can I reduce the size of a photo PROPORTIONALLY?  With my old Macmini I was able to place the pointer on the bottom right corner of the picture, hold down the shift key and move the pointer to achieve the desired size.  

    You'll need to use a 3rd party editor like one of these:
    Some Image Editors That Support layers:
    Photoshop Elements 11 for Mac - $79
    Rainbow Painter - $30
    Imagerie - $38
    Acorn - $50
    Pixelmator - $60 
    Seashore - Free
    Portraits and Prints - Free
    GIMP for Mac - Free
    Xee 2.1 - free
    My personal preference would be for Photoshop Elements for Mac. Most of these will let you select and copy a head from one photo, paste it into another photo, resize and place where you need it.
    PSE has a specific feature just for that function.  I belive the Adobe site for PSE has a demo video of that feature.
    OT

  • I would like to know it it's possible to change the scroll bar from the right part of the firefox browser, to the left part and, if it's possible, how can it be done. Thank you!

    The scroll bar (the one used to scroll up and down any kind of website), that is normally in the right part of the firefox browser, would be of much help to me if it could sometimes be moved to the left part of the browser. Is this possible? How can it be done? Can anybody tell me the exact steps to take in order to do this (if it is possible of course)? This would be helpfull to me, since I think that the firefox scroll bar is overlaping the scroll part of the facebook chat sidebar, since I just can see a few people on this facebook chat sidebar and I can´t scroll along it, as I could a while ago. So my guess is that the firefox scroll bar is covering the other. In order to solve it in a simpler way, I guessed that if the firefox scroll bar could be moved to the left side of the browser, this problem could be solved. So, can anybody help me?

    http://kb.mozillazine.org/layout.scrollbar.side
    Type '''about:config''' in Location (address) bar
    filter for '''layout.scrollbar.side'''
    Right-click the Preference and Modify it to '''3'''
    You may need to reload any pages open to have scrollbar move to left after Preference change.

  • The HUD Inspector in Full Screen View seems to position at the right margin of the image as a default(?)  If I toggle the button in the top right of the HUD it 'unlocks' and I can drag it to where I prefer -- at the left margin; (for over a decade) my doc

    The HUD Inspector in Full Screen View seems to position at the right margin of the image as a default(?)  If I toggle the button in the top right of the HUD it 'unlocks' and I can drag it to where I prefer -- at the left margin; (for over a decade) my dock has resided at the right margin so all my slider manipulation over countless editing sessions in Aperture has been ingrained to work at the left margin -- but, the vast majority of the time, the HUD overlaps the image I am editing in this 'unlocked' mode. 
    Every occasionally I enter Full Screen View and it positions on the left margin *without* superimposition...(!) My great joy is modulated into aggravation, however, should my tracking cursor drift all the way 'out of bounds' -- to call in the hidden pane of adjacent images sequenced in the library... This dramatically shrinks the Full Screen display and re-locks the HUD; if I toggle the switch to re-xpand the image it re-positions at the right margin!!!!  I SOOoooooo wish I knew how to control the default 'locked' margin of the HUD in Full Screen View...

    Drag it over to the Left. Then lock it there.

Maybe you are looking for

  • Why doesn't my converted video play in iTunes but on my iPad?

    Hey folks, I most recently converted my AVI DVD Backups to comply with my iTunes / iPad / iPhone environment. One of the TV Shows ("Arrested Development" if anyone cares) shows some kind of awkward behavior: Device Sync / add to Library Plays iTunes

  • Migration Workbench hangs during 'Mapping Indices'

    During the creation of an Oracle Model, Migration Workbench hangs after displaying the message 'Mapping Indices'. The problem can be reproduced with 100% reliability. The Migration Workbench task must be ended with Task Manager. The source is an SQL

  • No Filtering = Fail

    I have a HP b110a All-In-One printer. Recently after changing the security settings to WEP, we've been having trouble trying to get our printer to connect to the wireless router. On the Network Test Report it says 'FAIL' next to 'No Filtering'. My ro

  • CRM_SRV_MAP_PR_BADI and Block ID Fields

    Hi experts, I'm using an implementation of badi CRM_SRV_MAP_PR_BADI in R/3 to create a purchase requisiton, but I'v a problem with a pair of fields. The two fields are Block ID and the related free text. In the badi in ct_item (and ct_item_x) I fille

  • Search Engine Optimization

    Hi: So I have completed my client's website, http://www.deanbrittinghamphotography.com... The pages are validated and clean. Everything is titled. Images have ALT tags Meta keywords and descriptions are in place I have submitted the URL to Google, Ya