With the help of a page instead of on open print

In my code below, I use a print to insert the date and time. On the machine that we should print this on event printing does not work. Peut

I use some type of on event open pdf to insert the date and time, it will appear when the pdf file is printed?

app.addSubMenu ({cName: "Footer", cUser: "Set Date of manufacture", cParent: "file", Nonprofits: 20});

app.addMenuItem ({cName: "Set Date of manufacture (Filename) ', cParent: 'Footer', cExec:" SetFooter (1) "" ""});

app.addMenuItem ({cName: "-", cParent: "Footer", cExec: "{}"});

app.addMenuItem ({cName: "remove Date time (Filename) ', cParent: 'Footer', cExec:" RemoveFooter (1) "" ""});

function SetFooter (ARG)

{

var inches = 72;
var p = this.pageNum;

If (ARG == 1) {}
aRect var = this.getPageBox ({nPage: p});
aRect [0] += 6.20 * inch; from the left edge
aRect [2] = aRect [0] + 1.5 * inch; from the upper left corner of the page.
aRect [1]-= 7.08 * inch; top edge of the paper
aRect [3] = aRect [1] - 18; and height 24 points


var fd = this.addField ("date", "text", p, aRect);
fd.textFont = fonts. HelvB;
fd.textSize = 10;

}

var myWillPrintScript = ' var fd = this.getField ("date"); \r'
+ ' fd.hidden = false; \r'
+ ' var d = new Date(); \r'
+ ' fd.value = (util.printd ("mmmm yyyy", d)); \r'

var myDidPrintScript = ' var fd = this.getField ("date"); \r'
+ "fd.value =" ";" \r'
+ ' fd.hidden = false; \r'

Now define scripts to run on the will / did print events.
this.setAction ("WillPrint", myWillPrintScript);
this.setAction ("DidPrint", myDidPrintScript);


}


function RemoveFooter (ARG)
{

If (ARG == 1 |) ARG == 3) {var x = this.removeField (' date') ;}

If (ARG == 2 |) ARG == 3) {for (var p = 0; p < this.numPages; p ++)}

{

var x = this.removeField (String ("xftPage" + p + 1)); }

} }

You can use the event DocOpen.

Tags: Acrobat

Similar Questions

  • ow change titles &amp; dates of lots of pictures (like in iPhoto?) With the help of Mac 'Pages' on, 2008 aluminium MacBook running OSX El Capitan 10.11.4

    How to change titles & dates of lots of pictures (like in iPhoto?) With the help of Mac 'Pages' on, 2008 aluminium MacBook running OSX El Capitan 10.11.4

    With the help of Mac 'Pages '.

    A typing mistake?

    If it is and you mean Photos Date of Mac are modified by selecting the photos using the Image menu == > adjust the time and date of order and changes made to the metadata such as keywords, location, etc. are made by selecting the photos and find the info and registering metadata in the Info window

    These are detailed in the help topics of pictures - a good place to look for help on the Photos

    View and add information about the photos

    You can view and add information about your photos. For example, you can see the date and time a photo was taken, the information about the camera that took the photo and badges that indicate the status of the photo. You can assign titles and captions to photos, add or change the location of the photos and change the date and time for them information. You can select multiple photos in an instant and add or change information about them all at once.

    Open pictures for me

    View and add information about the photos

    To view or change information for the photos, you select one or more photos, and then open the information window.

    • Open the Info window: Double-click a photo to view it, and then click the Info button in the toolbar or press on command I.
    • Add or change information: Change the following.
      • Title: Enter a name in the title field.
      • Description: In the Description field, type a caption.
      • Favorite: Click the Favorites button to mark the photo as a favorite. Click the button again to deselect.
      • Keywords: Enter the keywords in the keywords field. When you type, Photos suggest keywords that you have used before. Press enter when you have finished a keyword. To remove a keyword, select it and press DELETE.
      • Faces: Click on and type a name to identify a face. Click on several times, and then drag the identifier of the face different faces to identify many faces in a photo.
      • Location: Enter a location in the location field. When you type, Photos suggest places you can choose. To change a location, you can search a different location or change the location by dragging a PIN on the map. To remove location information, delete it or choose Image > location, then choose Remove location or back to the original location. You cannot assign a location if your computer is not connected to the Internet.

    Show titles, other metadata and badges

    Change the date and time of photo

    You can change the date and time associated with a picture. You can do this if you are traveling to a location in another time zone, and your camera affect your dates photos and periods that are correct for your House, but not the place you visited.

    1. Select the photos you want to edit.
    2. Choose Image > adjust Date and time.
    3. Enter the date and time you want in the modified field.
    4. Click a time zone on the map, if necessary.
    5. Click on adjust.
  • With the help of fo:page - instruction in such number?

    To Preface my question, I try to get another heading (none in fact) on the first page of a template as the rest of the pages with RTF output.

    As others have noted, the "Another header on first Page" feature of the Word works very well for the PDF output, but not for the RTF.

    What I was hoping I could do is just add a simple conditional statement the header text so that the header will be printed only if the value of fo:page - number is greater than 1. I tried to do several things such as:

    <? If: fo:page - number = 1? > header <? end if? >
    <? If:? fo:page - number? > = 1? > header <? end if? >

    And nothing seems to work. I'm pretty ignorant when it comes to the substance of xsl fo, so I was hoping that my problem is just something with the syntax. I have, however, read a few things that may indicate such things does simply not work.

    Any help would be greatly appreciated.

    Hi TNE

    The Page number is calculated at the end of the treatment cycle and is not available at the time where your statement is processed. Therefore, it will not work like that.

    To put a more simple way, unless the publication engine treats all the logical instructions, he won't know how many pages long the output will be, so after all the processing is done, then only the page numbers are assigned.

    -Karine

  • With the help of Master pages and blocks of text

    Hello

    I created a text frame on a master page and you have specified a style

    Can I add my custom text on the text block by pressing ctrl + Maj + text block.

    If I change the style, it applies to all pages.  But if I move or resize the text block on the page master it does not apply to all pages because it has become its own layer on this page.

    What do you do before you can change the text block and the master page and still be able to add your own content in pages that depend on the master page.

    Thanks a lot for your help

    Why do you need to replace the title of the page?

    Use either a text variable, a section marker or create another master page based on this master page with a different text in the placeholder. Only the content will appear on the pages, everything else, like running headers or page numbers or artifacts have a place on the master page without replacing them.

    When you later create accessible PDF or EPUB this difference is important. You can read high voice content in Acrobat for accessibility, that text on the page, not the master is used for this, and when you export an EPUB page only elements, not the master are included as it should.

    If you need text to expand, when something changes, create your page with margins and borders that will help to make changes later.

  • With the help of black ink instead of black ink cartridge Photo

    I have a HP Photosmart Premium 309 has and would like to know what are the settings that I need to change so that when you print a text document it uses black ink instead of the photo black ink.

    OR

    What settings should I change my 309 uses a black ink instead of black in photo is not serious what I print?

    See the solution here:

    http://h30434.www3.HP.com/T5/other-printing-questions/using-photo-black-instead-of-regular-black-for-general-printing/m-p/738137#M40287

  • With the help of a page and write to two tables?

    Request Express 3.1.0.00.32


    I have 2 pages each point at their own separate table. All things considered, the two pages can be combined into a single, but the structure of the table must remain intact.

    I copied the region of page 2 on page 1, them flowing properly so that the user does not have a problem, enter the information in the form.

    However I'm unable to have the information entered to engage in two different tables.

    All the information in table 1 (page 1) will save however will not be the information in the region on the page 2 (table 2). I've referenced the source as the page element (P3_EMP_ID), as well as the name of table.column and have had no luck.

    Is this possible and how?

    Hi Leland,

    You should look into the clause of the insert statement VOTE: http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9014.htm#i2171131

    Or, on a line of the XXX process on a form, you also have a key to return to the setting of the article - if you have this process, you can enter P23_PK_PROJ_MASTER_ID
    in there.

    Andy

  • How (if possible) I point out a whole day in the Windows calendar instead of just a single event? (With the help of Vista Ultimate) Thank you.

    How (if possible) I point out a whole day in the Windows calendar instead of just a single event? (With the help of Vista Ultimate) Thank you.

    I have no experience with Windows Calendar, but see this article for a bit of luck:

    Customize Windows Calendar
    http://Windows.Microsoft.com/en-us/Windows-Vista/customize-Windows-Calendar

  • With the help of Windows to the top. -J' changed my settings on the page to backup several times, and now when I try to back up my computer it keeps default.

    TODAY, I CHANGED MY SETTINGS ON THE BACKUP OF THE PAGE WITH THE HELP OF WINDOWS BACK UP TO SEVERAL TIMES AND NOW WHEN I TRY TO BACK UP MY COMPUTER AGAIN, HE GUARD DEFAULT.
    I HAVE WINDOWS VISTA PREMIUM 64 BIT.
    I WOULD APPRECIATE YOUR RESPONSE

    Hello

    1. do you receive any error messages?
    2. what exactly happens when you try to backup data?
    3 have. what settings you changed?

    Please answer these questions. This will help us assist you better.

    Try to perform the clean boot.

    Refer; http://support.Microsoft.com/kb/929135

    Thanks and greetings
    Umesh P - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • I have customized a widget and want to reuse on another page. How save, copy or reproduce them? With the help of the iMac and Muse 2015

    I have customized a widget and want to reuse on another page. How save, copy or reproduce them? With the help of the iMac and Muse 2015

    You can just copy/paste the enchilada itself on another page, pretty easy!

    If you want to reuse more often, you can open the library or libraries CC , to store and later hanging out once again. Note: for the creation of an article in the 'old' library, you must select the element on the page and click on the new icon in the " library " window To create an element of CC libraries , you can simply drag something in and out of the window libraries CC .

  • With the help of NVIDIA GTX970, it will allow acceleration GPU rendering and playback instead of Mercury playback engine software only option?

    I want to buy GTX 970 NVIDIA,

    With the help of NVIDIA GTX970, it will allow acceleration GPU rendering and playback instead of Mercury playback engine software only option?

    Yes.

  • OEBS 12.1.3 purchase request for approval Notification - SOUL with the help of approvals.

    1. We discovered that the version of the SOUL of this notification is generated via a framework of OA.
    2. We have a requirement for the company to add details of the additional topics to the part of the notification.  These fields are not standard for objects of view OA executives Business so an extension of necessary view.
    3. With the help of this and other sites, I was able to extend the view object in the favorite jDeveloper IDE and transfer it to my development OEBS instance.
    4. I see my view extended on the OFA Page, when you look at the content of 'About' from the page.

    My problem is when I try to 'Customize' and add a column of extended view, errors Page OAF that I am trying to come back since the customization session.

    I joined "Personalization_Error_when_adding_new_column_from_OA_Extended_view_object.docx" detailing what I try to run.

    Support of Oracle said that extension of the view OFA is considered a "customization" and that he does not want to help.

    Can anyone advise on what I should look at to solve this error?

    Any feedback/assistance would be greatly appreciated.

    Best regards

    Rich

    The View attribute is referred to as "LAST_UPDATE_DATE". If this is what we call in the SQL query, the attribute of the view object might be different like "LastUpdateDate". Please check back in the XXVO.xml.

    If that has not solved the problem, its running diagnostics by activating the option FND:Diagnostics profile. Then you will get the link 'click here' link on the error page to get the error stack. You can stick the stack of error here.

    Thank you

  • With the help of JavaScript condition in the dynamic action of JQuery selector

    Hi guys,.

    I have a Setup master detail on a page.

    The detail section, I have a tabular presentation.  One of the fields is a selection list.  The first record in the select contains the value * not * that has a value of primary key for the 1.  I have a distinct region with a simple text field where the user can insert a value into the table if the value does not exist.

    I want than the region of text element to only appear if the value * not listed * is selected.

    I managed to make it work when the value is selected with the help of dynamic action with a bit of JQuery and JavaScript by setting the ID on the selection list to 'create' and have the following in JavaScript $(this.triggeringElement) .val ()! = 1 in the JavaScript for dynamic action condition shows it or hides the region of 'create' and that works well.

    However, if the secondary table is empty before the detail records were created (nothing selected in triggering jQuery Selector) the region of create is displayed when I don't want it.

    I guess I need some sort of NVL in JavaScript condition?

    I use APEX v4.2.

    Any advice would be appreciated.

    Chris

    Cashy wrote:

    I have a Setup master detail on a page.

    The detail section, I have a tabular presentation.  One of the fields is a selection list.  The first record in the select contains the value * not * that has a value of primary key for the 1.  I have a distinct region with a simple text field where the user can insert a value into the table if the value does not exist.

    I want than the region of text element to only appear if the value * not listed * is selected.

    I managed to make it work when the value is selected with the help of dynamic action with a bit of JQuery and JavaScript by setting the ID on the selection list to 'create' and have the following in JavaScript $(this.triggeringElement) .val ()! = 1 in the JavaScript for dynamic action condition shows it or hides the region of 'create' and that works well.

    However, if the secondary table is empty before the detail records were created (nothing selected in triggering jQuery Selector) the region of create is displayed when I don't want it.

    I guess I need some sort of NVL in JavaScript condition?

    I use APEX v4.2.

    Simple solution is to hide the region containing the element of text by default, using the style = "" view: no ' in the property of the attributes of the area in the region. " It will be always hidden when the page initially, but its visibility will be controlled by the DA subsequently.

  • With the help of Acrobat with MS Access VBA

    With the help of Acrobat 9.5. I'm trying to analyze a problem, so I have this test code:

    CODE

    Void testObjects()
    Dim i As Boolean
    Dim objapp As acrobat. AcroApp
    Set objapp = New acrobat. AcroApp
    objApp. Show
    I have = objapp. CloseAllDocs
    Debug.Print I have
    I have = objapp. Output
    Debug.Print I have
    Set objapp = Nothing
    End Sub

    After Objapp.closealldocs I I = true (successful) but after I get i = objapp.exit I = false (no), and of course Acrobat is still active. How can I get Acrobat to close? It is a bit of test code. In the real application Task Manager indicates acrobat using memory more and more as the application moves through the records.

    I suspect I'm missing something obvious here, but what? My experience with Acrobat automation and access is limited, so be gentle with me! smile.gif

    If this is the wrong forum, please tell me where I should go.

    I thought people might be interested to know that I found a work around for the problem of memory leak. I inserted a break every so many documents and that seems to be enough to let the Acrobat to free the memory.

    On the development of PC a break of 10 seconds every 50 records (or probably more) are sufficient enough. but I'll have to do some settings on the computer target to find the optimal number. This means that the process is extended, but it is once a year of operation, so I don't think that will be a problem. I'm estimating that the final time will be approximately 15 minutes.

    Of course, I thought of the solution until after that I had worked to generate Word documents instead, but it now means that we can offer the form in PDF or Word format.

    Thank you all for all the help and suggestions.

  • with respect to an application to turn with the help of a global static variable

    Hello. I've read a few articles on JavaFX competition, and as a beginner, so I have to practice on this subject. Now, I'm trying to implement a turn-based application which can be played between 3 to 6 players. Furthermore, I use a scene from a .fxml file and I need to update it properly depends on certain calculations of each thread (in other word players). My main problem is, I don't want to use a while loop that checks the status of similar game;

    While (GameState! = State.GAME_OVER) {}

    currentPlayer = GameBoard.getNextPlayer ();

    perform certain actions, calculations, etc.

    }

    So, I want to use threads to work instead while loop. I guess only with the help of the Service used to iterate class and assign the next player will be adapted to instead of using the while loop and the tasks for the calculation of each player, or waiting for a few responses of human players on the UI account, however, I am faced with two problems.

    1. It has a global static variable (like the GameState which is an Enumarator) determines the State of the game, so it should be updated and must be verified by each round. Is it possible to do this?
    2. How can I get rid off this while loop?

    I would like for each answer. Thanks anyway.

    It shouldn't make too much difference. The basic idea is that you have a model class that represents your state of the game (the class of game in example jsmith). When a player makes a move, you update the game state. Because this will result in changes to the user interface, this update must be performed on the Thread of the FX Application.

    If the player makes the passage is a human player, the move would be done by a user action (mouse click or press button, etc.); This will be handled on the FX Application thread in any case.

    When the State of the game changes so it is in an "artificial" player's turn to move, have the object representing the artificial player calculate his next move and then update the game state. Since it is a response to the evolution of the game state (it is the artificial player's turn), it will also be on the Thread of the FX Application.

    The only (slight) complexity comes if the calculation of displacement for the artificial player takes a long time. You don't want to perform this calculation of long duration on the Thread of the FX Application. To handle this, the cleaner is to start a task that computes the desired pass and then updates the status of the game when travel is ready. So, something like this:

    GameState game = ... ;
    // UI is bound to the game state.
    ExecutorService executorService = ... ;
    // ...
    
    final Player currentPlayer = game.getCurrentPlayer() ;
    final Task calculateMoveTask = new Task() {
         @Override
         public Move call() {
              Move move = // compute next move...
              return move ;
         }
    };
    
    calculateMoveTask.setOnSucceeded(new EventHandler() {
         @Override
         public void handle(WorkerStateEvent event) {
              gameState.makeMove(currentPlayer, calculateMoveTask.getValue());
         }
    });
    
    executorService.submit(calculateMoveTask);
    

    If you make a thread more than that, you're probably do badly... Also, there should be no need anything it either, will be held in a "global" static variable (the idea above is the only structural change you the example posted by jsmith).

  • Need the pdf file must be stored directly in the database with the help of jasper

    I use the package of integration of jasper... www.opal-consulting.de
    using apex 4 and am now able to generate the invoice pdf... with the help of jasper and store it in a database... Board.

    I need to generate the pdf in the background... without dispalying invoice in my screen...
    Without having to download on my computer... And store directly in the database table.
    *.. *

    Is this possible...
    All information is very appreicated.


    Here is my part existing code... Kindly Guide.


    DECLARE
    l_blob BLOB;
    l_mime_type VARCHAR2 (100);
    BLOB l_blob2;
    l_mime_type2 VARCHAR2 (100);
    MPort varchar2 (200);
    mrserver varchar2 (20);
    BEGIN
    Warn('fsubdno'||:P103_SUBSCRIBERDNO);
    commit;
    mrserver: = rserver();
    MPort: = ' http://'|| mrserver | ' / JasperReportsIntegration/report ';


    ------------------------------------------------------------------------
    -generate the report and return to BLOB
    ------------------------------------------------------------------------
    xlib_jasperreports.set_report_url (mport);
    Warn ('firststrikeeee');

    xlib_jasperreports.get_report
    (p_rep_name = > 'reinvx',)
    p_rep_format = > "pdf."
    p_data_source = > 'failures. "
    p_rep_locale = > 'de_DE ',.
    p_rep_encoding = > 'UTF - 8',
    p_additional_params = > ' & Psubscribe_no ='. : P103_SUBSCRIBER_NO | ' & Psubscribed_no ='. : P103_SUBSCRIBERDNO,.
    p_out_blob = > l_blob,
    p_out_mime_type = > l_mime_type
    );
    WPG_DOCLOAD.download_file (l_blob);
    Warn ('secondstrikeee');

    WPG_DOCLOAD.download_file (l_blob);
    BLOB_LOADB (MID (),: P103_SUBSCRIBER_NO, NULL, 'RENEWAL_INVOICE', 'RENEWALINV' |: P103_SUBSCRIBER_NO, L_MIME_TYPE, L_BLOB);
    ------------------------------------------------------------------------
    -free resources
    ------------------------------------------------------------------------
    DBMS_LOB.freeTemporary (l_blob);
    ------------------------------------------------------------------------
    -judgment of the APEX page
    ------------------------------------------------------------------------
    apex_application.g_unrecoverable_error: = TRUE;
    EXCEPTION
    WHILE OTHERS
    THEN
    xlog (SQLERRM, "PRC_GET_REPORT_TUNNEL", "ERROR");
    LIFT;
    END;

    Published by: susf on 16 July 2012 08:47

    Hello

    try to do a procedure from your original like this code:

    procedure make_pdf(p_subscriber_no in number, p_subscriberdno in number)
    is
       l_blob blob;
       l_mime_type varchar2 (100);
       l_blob2 blob;
       l_mime_type2 varchar2 (100);
       mport varchar2(200);
       mrserver varchar2(20);
    begin
       warn('fsubdno'||p_subscriberdno);
       commit;
       mrserver := rserver();
       mport := 'http://'||mrserver||'/jasperreportsintegration/report';
       -- generate the report and return in blob
       xlib_jasperreports.set_report_url (mport);
       warn('firststrikeeee');
    
       xlib_jasperreports.get_report
          (p_rep_name => 'reinvx',
          p_rep_format => 'pdf',
          p_data_source => 'chess',
          p_rep_locale => 'de_de',
          p_rep_encoding => 'utf-8',
          p_additional_params => '&Psubscribe_no='||p_subscriber_no||'&Psubscribed_no='||p_subscriberdno,
          p_out_blob => l_blob,
          p_out_mime_type => l_mime_type
          );
       blob_loadb (mid(),p_subscriber_no,null,'renewal_invoice','renewalinv'||p_subscriber_no,l_mime_type,l_blob);
       -- release resources
       dbms_lob.freetemporary (l_blob);
    exception
       when others
       then
          xlog ('prc_get_report_tunnel', sqlerrm, 'error');
          raise;
    end;
    

    Then, you can call this procedure in a database job that you create with an apex as this process:

    begin
      dbms_scheduler.create_job (
        job_name        => 'make_pdf_job',
        job_type        => 'PLSQL_BLOCK',
        job_action      => 'begin make_pdf(' || :P103_SUBSCRIBER_NO || ',' || :P103_SUBSCRIBERDNO|| ') end;',
        start_date      => systimestamp,
        repeat_interval => null,
        end_date        => null,
        enabled         => true,
        comments        => 'Make pdf job from Apex page 103.');
    end;
    

    Kind regards
    Erik-jan

Maybe you are looking for