Dynamic date stamp along the page border

I have a javascript to put a stamp on dynamic date vertically along the left edge of a PDF document.  This script works very well for the first page.  However, on a document of several pages, that the date stamp is not turned 90 degrees, so on the 2nd page, there are just a few letters horizontally.  Here's the script.

var inches = 72;

for (variety p = 0; p < this.numPages; p ++) {}

/ / create rectangle to field quads

aRect var = this.getPageBox ({nPage: p});

aRect [0] = 0.0;

aRect [1] = 0.0;

aRect [2] = 26.0;

aRect [3] = 792;

/ / now to build text field to fill with date information

var f = this.addField ("PrintField", "text", p, aRect)

f.delay = true;

f.rotation = 90;

f.textSize = 16;

f.textFont = fonts. HelvB;

f.textColor = color.black;

f.alignment = 'center ';

f.readonly = true;

f.print = true;

f.hidden = true;

f.delay = false;

}

Adds a script level doc to fill out the text field when doc prints from

Acrobat or Adobe Reader free. Note: the character '\r' represents a

carriage return.

var myWillPrintScript = ' var f = this.getField("PrintField"); \r' + ' f.hidden = false; \r' + ' var d = new Date(); \r' + ' year var = d.getYear () + 1900; \r' + ' var minutes = d.getMinutes (); \r' + ' if (mn < 10) {\r' + ' min = "0" + min}; \r' + ' if (d.getHours () > = 12) {\r' + ' mins = minutes + "H"; \r' + '} else {\r' + ' mins = minutes + 'AM' ;} \r' + ' f.value = 'CE DOCUMENT ONLY EFFECTIVE ON' + (d.getMonth () + 1) + "/" + d.getDate () + ' / ' + year;} \r'

var myDidPrintScript = ' var f = this.getField("PrintField"); \r'

                           + ' f.value = ""; \r'

                           + ' f.hidden = true; \r'

Now define scripts to run on the will / did print events.

this.setAction ("WillPrint", myWillPrintScript);

this.setAction ("DidPrint", myDidPrintScript);

FYI: This script came from the following options other threads and links

http://www.PlanetPDF.com/developer/article.asp?contentid=AddingdynamicstampstoPDFswhenprin ting

http://forums.Adobe.com/thread/286289

http://forums.Adobe.com/message/1097488#1097488

Can someone understand why this script does not work on all pages?

Thank you

This is a bug in Adobe Acrobat. Add the following code after your loop for:

for (variety p = 0; p)< this.numpages;="" p++)="">

var f = this.getField ("PrintField." + p);

f.Rotation = 90;
}

Tags: Acrobat

Similar Questions

  • How to create personalized with a dynamic date stamps

    I tried to create a customized with a dynamic date stamp. But the date is not dynamic. Help, please

    There are a number of things that need to be properly configured for a stamp to work as a dynamic stamp, form the name of template to the calculation script. If you provide the details of how you set the PDF stamp, it would be useful, as would the next book that has all the information you need: www.amazon.com/About-Stamps-Acrobat® - without paper-Workflows/dp/0985614706 /.

  • Generate dynamic elements without refreshing the page

    Hello

    I have a challenge to generate elements on a page dynamically without refreshing the page.

    I tried to do with AJAX, but do not have the elements on the page.

    I see that my process is called as I can warn the outcome of the appeal.

    Here is my code:

    I have a button calling the JavaScript function with AJAX call for the process:

    function f_OnDemand() {}

    get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is NEW_FLOW', $v ('pFlowStepId'));

    invoke

    gReturn = get.get ();

    ajax reminder alert

    Alert (gReturn);

    }

    And here is the process that involves creating a few dynamic elements on a page:

    DECLARE

    Meter number;

    number of items;

    number of p_counter;

    BEGIN

    items: = TO_NUMBER(:P7_NUMBER);

    FOR counter IN LOOP 1. items

    p_counter: = counter + 1;

    HTP. P ("Item" |) APEX_ITEM. DISPLAY_AND_SAVE (p_idx = > counter, p_value = >, p_item_id = > counter). ': ');

    HTP. P ('Checkbox': counter |) ' ' || APEX_ITEM. CheckBox(p_idx => Counter, p_value => 'Test'));

    HTP. P(' ' || APEX_ITEM. SELECT_LIST (p_idx = > counter, p_value = > 'Y', p_list_values = > ' Yes;) Y, no.; N') || br / > ');

    HTP. P ("< br / > '");

    END LOOP;

    END;

    The question is - how can I make these elements of rendering on a page?

    I'm on Apex 4.2

    Thank you.

    The return would be inserted somewhere in the DOM of your page. So, regardless of the call ajax returns, must be added to a zone. Use jQuery for this. See this example:

    https://Apex.Oracle.com/pls/Apex/f?p=93000:803

    Denes Kubicek

  • How to trigger a conditional display based on a dynamic Action without submitting the Page

    Hello

    Using Oracle APEX v4.2 on 11g, I have the following scenario and wanted to take other people on how to accomplish what I'm trying to do, i.e.:

    In region 1, I have a select item list page called P1_SELECTION, which contains selections from drop down to the user to choose from the following three: A1, B2 and C3

    In region 2, I have two checkbox elements:

    P1_CBOX1 I gave a conditional display of ' point value / Expression 1 column! = 2 expression, where Expression 1 = P1_SELECTION and Expression 2 = B2, so P1_SELECTION! = B2

    P1_CBOX2 I gave a conditional display of ' value of the point / column Expression 1 = Expression 2 where Expression 1 = P1_SELECTION and Expression 2 = B2, then P1_SELECTION = B2 .

    Use of dynamic Action on the evolution of the P1_SELECTION in region 1, how can I trigger the correct display of the checkbox in region 2, with the default view of the region 2 checkbox being P1_CBOX1, without submitting the entire page, just refreshing each of the elements checkbox to trigger the conditional display correct?

    For example, on the changes of P1_SELECTION = B2 then entire submission without page, only P1_CBOX2 is presented to the user in other P1_CBOX1 is displayed.

    Is this possible?

    Thank you.

    Tony.

    Hi Tony,.

    condition your dynamic action on P1_SELECTION with the following condition of javascript: this.triggeringElement.value = "B2".

    Add real actions that will show P1_CBOX2 and hide P1_CBOX1

    Add false actions and going hide P1_CBOX2 show P1_CBOX1

    Set the dynamic actions to fire on Page load

    Kind regards

    Erik-jan

  • How do I dynamically set values of the pages on a null value when an item is changed

    Hi all

    I am new to Oracle Apex.

    I have P_ITEM1 as a selection and P_ITEM2 also a list selection of value P_ITEM1. (to my condition that I do not use cascading article Parent LOV)

    I submit the page when the P_ITEM1 value is selected then LOV on P_ITEM2 gets refreshed based on the P_ITEM1 value.

    I am train to clear the item previously selected to P_ITEM2 when the value of P_ITEM1 is changed.

    I tried to create a dynamic action on the change on P_ITEM1 event and net Action on P_ITEM2.

    and the dynamic action does not work.

    Thank you.

    -Kumar

    Kumjeeth

    Set the attribute area of the Page to send items to P_ITEM2. He would submit the P_ITEM2 on dynamic action of refreshment.

    Nicolette

  • How to plan the report filtered by dynamic date based on the date, the Agent is running

    Hello

    I have a question about account using OBIEE agent.

    If I run an agent today to deliver A report, can I me A report based on the date of last Monday or any dynamic dates?

    For example, say is today, December 18, 2013, and my agent is run according to how I put the calendar. Now the content of the delivery report one being delivered. Now A report has a date column, normally this column is filtered by the current date. But if it comes through the agents to different users, the data should be the previous Monday, so in this case, 9 December 2013. When this agent is run once again, declared December 27, 2013, then the report must be filtered by December 16, 2013, which is the previous Monday 27 dec.

    Something like this is possible in OBIEE 11 G?

    Thanks in advance.

    Yala,

    Not in a straightforward way

    (1) let the report through Agent with filter current Date

    (2) after he ran for the first time you can see IBOT name/last execution time (LAST_RUNTIME_TS) in S_NQ_JOB

    Create a variable reference 'last_run_agent' to aid in sql to get max (LAST_RUNTIME_TS)

    SELECT max (LAST_RUNTIME_TS) from s_nq_job, whose name = "AGENT_NAME;

    Change analysis with current date filter report and amend accordingly the condition of filter to filter on repository variable, newly created

    Thank you

    Angelique

  • How I created the dynamic personalized stamps for the PDF stamp with?

    Trying to create a dynamic custom stamp, so that I can stamp PDF with either "reviewed" or "refused" to a given date and time

    Some tutorials

    https://acrobatusers.com/tutorials/filter/search&keywords=dynamic+stamp&channel=tutorials& category = 13 & tut_type = video + OnDemand + graphics + HTML.

    Be well...

  • Is it possible to access control with data binding to the page

    Hello

    I want to know if we can access the datacontrol operations in the bean with managed to link these operations to the definition of the page.

    For example: I have a method in the application Module that is under the control of data and create an impression of the page with link of this operation to the definition of the page.
    I created a button on the page and when you click on the button it calls a method in the managed bean.
    Can I run the operation in the data from the managed bean code control? Can I handle for the data from the managed bean code control?

    Please let me know if this can be done or not.

    Thank you
    Stephanie

    Why you don't want to use binding for this? Is there a specific reason for it, or you want to just make life harder?
    You could write a managed bean that has a method that creates and instance of AOS and calls the method - and then just call managed method from your page bean.
    Something like this:
    http://download.Oracle.com/docs/CD/E17904_01/Web.1111/b31974/bcservices.htm#CHDIBHBD

  • Text editable on the Page border

    I have a page that has a border around it and I want to be able to put text on the side of the page on the border, but I don't know how to overlay the text so that the border disappears under the text. I need to do a lot of pages with different text on each one, then it will change a little each time.

    It now looks like this. I need the border to go further in the text. Thanks in advance.

    Capture.PNG

    You want to add a new fill type and then move the new filling under the characters in the appearance Panel and using the effect > convert to shape > Rectangle to make the opaque background for the text as such

    http://Gallery.me.com/wzphoto2/100004

    Also if make you a model you don't have to recreate the effect of text and rectangle.

    If you copy the art in any number of the multiple ways to say fit into 6 work plans and make a model, then once you open a tempalte you have six pages to change or add text.

  • Periodic data refresh on the page or refresh on command?

    Hello!

    I have a start page of my application that displays data from a couple of iterators. This page is intended mainly to access certain tasks on these data, but the task is based on the data itself. So I have to make sure, when the user clicks a command link (let's saj in a column of the table) the data in this table is updated. I thought a lot about some features that cause the data on the page to refresh periodically since there is also a picture showing the current positions of certain transport units (or at - he or she is not, I have no update in real time). Second option is to update the required iterator somehow when the user clicks on the line because sometimes it happens that a user clicks on the link of the line, but when the task starts data are not the line clicked on but a completely different recording since there are a few changes of data of another user that caused the order of the lines in this table.

    Please let me know what is the best way to deal with my needs and if the periodic refresh is OK, how to implement a periodic refresh of the page or so concidering these tips: http://radio.weblogs.com/0118231/stories/2005/06/16/whyIsntRefreshingTheBrowserPageEnoughToRefreshTheDataDisplayed.html - update all iterators on the page.

    I hope my question is clear.

    Kind regards
    BB

    BTW
    With the help of ADF BC 10.1.3.3

    Published by: Brokenbone on July 22, 2009 11:41

    Hello

    I think you can use the poll with specified interval and pollListener tag, you can find more information on links below

    http://www.Oracle.com/technology/pub/articles/Jellema-Muir-ADF-part2.html
    http://thepeninsulasedge.com/frank_nimphius/2007/09/18/ADF-faces-using-afpoll-to-refresh-a-table

    Jean Lou

  • How can I export all the data collected on the page manage the of Echosign (list of all signed documents) to an excel file?

    Hello, rather than saving contracts individual pdf, I was wondering if there is a way I can export all of the data collected from the various contracts in a single great file?  Thank you

    Hello Olivia47511068,

    If you have used a library template to send the documents for signature, you can export the values of individual transactions by going into the tab manage and then scroll down to the section template Library, single click on it and on the right side, click on the history tab and select ' export the data. It will download the CSV file with data of form field of all transactions made using the model of the library.

    -Usman

  • Remove the Page border (I think...)

    I am a new user of Indesign, so it's probably a very basic question.

    I create training materials for a presentation of the model "Manual.indt".   The front page has a thick red stripe in the upper part of the margin of the title page.   What is - this, and how to remove it or change it?   I can't select it as an object. I have attached the following page.

    Thanks in advance!

    Maybe it's on the page master

  • How can I turn off date stamp and the time in the comments

    I have a laptop and need to turn off the stamp tme and date in the comments is it possible?

    The purpose of the hour and the date is to allow the chronological classification of the comments. Because date timestamp is based on UTC and the displayed value is adjusted to the local time zone, this could be a handy feature for certain documents that could help to establish when something has been done.

    There is no way to the turnoff to the timestamp date of comments. You might be able to use JavaScript to manipulate the properties of the comment.

  • Merge the moving data out of the page records...?

    I'm doing a data merge to create a directory size Member, finished 5.5x8.5

    I do multiple records (each size 1.5x.1.5 inches) per page document, and when I saw the cliché of multiple registration, she moves all the records down about 1 inch and more to the left about 2. It doesn't seem to be lining up with anything. My margins for the fusion of data are set sur.3 all around.

    I tried to use a data source is a CSV (comma delinated) and also a text file (tab delinated).

    I tried to create a new file and reset the necessary info from scratch, in order to ensure that it was not all the corruption of files possible.

    Here is a picture of what's going on. Can someone give me an idea why this change happening?

    I use CS6 and had never happened to me before with previous work.

    BEFORE.pngAFTER.png

    It seems to be connected at the preview, so that if he introduced a preview once again it has not executed correctly. The only way that I was able to get a good behavior out of the file was to create a new file, copy the text block into it, set up a new data merge info and run without a preview.

    Any attempt to create a new file and the preview before the execution resulted in record offset.

  • 'Bookmark this Page' goes - does the popup form flood data bookmark for the page I want to bookmark.

    I use it every day. I click on bookmarks and the drop down shows - I click on MARK THIS PAGE - and he died - the drop down menu disappears correctly but the popup didn't come with the form to fill out the name of the bookmark and the location that I want for her. This happens sometimes during some time. Maybe a few months I don't know. I have no idea why it starts and stops working on its own. How can I fix?

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe

    For problems with the file places.sqlite (bookmarks, historical) database, you can check in the Firefox profile folder.

Maybe you are looking for