Using JavaScript to search for dates in PDF

Hello,
I have a question about using JavaScript in Adobe Acrobat X Pro.
I want a script that automatically search dates which fall within one week of the date of today.
If this is true then the pdf file have to be deleted. If the date is later then one week of the date of today then the pdf file must be moved to a different folder.
I hope anyone can help me with a solution.
With regards,
Robert

Searching is the easy part. The problem is that a script can't delete a
file, nor can it move a file to another problem.
On Wed, Jan 7, 2015 at 8:55 AM, RobertZandberg <[email protected]>

Similar Messages

  • Is it possible to use JavaScript to search a directory of PDF files?

    A company I am interning for is looking for a solution. They want to allow users to search within their PDF user manuals by typing a string into a search field and returning the PDF document link or page link. Is this possible? How would I accomplish this? I have only been programming for 1 year.
    Can adobe reader use javascript to create a link that we attach the directory to? If not how or what would you do?
    Thank you.

    Ideally, I would like a link to Adobe Reader or Acrobat that only allows users to "Search Our Manuals for Help".  The user types in "Commission Invoice Inquiry" and in return gets links etc. to the PDF's in our directory of files containing that inquiry or "string".
    User scenario:  User gets new software from company but needs to look in manual on how to get "commision invoice inquiry". So user goes onto my company's website and finds this said application I am looking for and types in "commission invoice inquiry" and hits enter. The application then searches through the company's directory of PDF files (manuals) for "commission invoice inquiry" and returns any page links within the PDF that have that "commission invoice inquiry" on them. It can open inside of Adobe Reader or Acrobat or whichever. The company is even willing to pay for said "plugin" or application.

  • Clues about query's - Search for date type at INBOX

    Hello Everyone,
    At IC Webclient, does anyone experiment to add a new search date type at INBOX, at "search for date" search parameter?
    I added a new date type at Date Management, ZDATA_PR.
    When I try to assemble the query parts, I use something like this:
    CL CL_CRM_QUERYAUI_RUN_BTIL
    METH READ_BUSINESS_TRANSACTIONS
    CALL METHOD cl_crm_report_qupart=>get_qupart_by_token
        EXPORTING
          iv_token     = 'DAT'
          iv_date_type = 'ZDATA_PAR'
          iv_from      = ls_query_aui-from
          iv_to        = ls_query_aui-to
        IMPORTING
          ev_qupart    = ls_qupart_range-querypart.
      APPEND ls_qupart_and   TO lt_query.
      APPEND ls_qupart_range TO lt_query.
    However, I'm rewarded with an error message telling me that I have problems with the query.
    Does anyone can give me clues how to perform this action? I'm clueless and there's not almost no information about this...
    Thanks and Kind Regards
    Bruno Garcia

    Just to solve a mistake at example code:
    CALL METHOD cl_crm_report_qupart=>get_qupart_by_token
    EXPORTING
    iv_token = 'DAT'
    iv_date_type = 'ZDATA_PR'
    iv_from = ls_query_aui-from
    iv_to = ls_query_aui-to
    IMPORTING
    ev_qupart = ls_qupart_range-querypart.
    APPEND ls_qupart_and TO lt_query.
    APPEND ls_qupart_range TO lt_query.
    does anyone has a suggestion or a clue to give?
    Thanks
    Bruno

  • Need to build communication redundancy using serial RS-232 for Data Transfer b/w Host and RT irrespective of TCP/IP Data Transfer

    Hi - I would like to build the logic in which it should accomodate the communication redundancy using serial RS-232 for Data Transfer b/w Host and RT irrespective of TCP/IP Data Transfer.
    I want to do data transfer b/w host and RT through RS232 VISA portal whenever TCP/IP ethernet cable has been unplugged from the controller continuosly , it should keep on checking for TCP/IP link re-establishing also , when ever the tcp/ip link established again that time the communication should be using in that link only. This is accomplished by deploying the RT vi as execuatbale file. I made some logic regards to the above said logic , bur it was not working as much I expected.
    I request you to go through the attached two VI's and let me know , what I did wrong in that,
    Please do the needful.
    Attachments:
    TCP_Serial_Host.vi ‏33 KB
    TCP_Serial_RT.vi ‏41 KB

    even i am new to this topic and i am trying to get familiar with these protocols
    refer to tcp server/client examples in labview examples

  • Search for data in server based database.

    I have a web page (http://gosolivitahomes.com) where I can enter a search for data in my server based database.  If I enter a value less than $100,000 in Min Price I get no response.  For values >= $100,000 I get the correct response. Why?  Please help.

    Yesterday I got no properties under $100,000.
    To day I tried again and the first time I got 2 results, but when I went back and repeated the same thing, I got no result.
    Then, like John Waller suggested, I cleared my cache and the 2 result were back.
    Perhaps your problem is a template or other cms cache issue. I don't know very much about it, but when I had a login problem I had to disable user cache i the cms (Joomla).
    I hope you will solve the problem

  • Do I need to have the SDK to update a PDF form using an HTML form for data entry?

    I would like to update as many PDF forms as possible based on
    the users initial log-in information so that they are not
    constantly , and repetitively entering basic information.
    Can this be done using Javascript and does it require the SDK
    to perfom?
    I would appreciate your help with this real-world scenario.
    Thanks

    Hello
    I am using Web Client with the DownLoadFile() option to download files from a site.  If too many requests come in too fast it will banned that address for 24 hours.  (A DDOS security measure) I need to have the program wait until the file
    is downloaded before making the next request but be running in the background so not to freeze the application.  A progress form will allow the user to know the status of the downloads. 
    I see something about asynchronous downloads but do not seem to understand how I would make use of it or if it is the method I want to use.
    If someone could point to or give a good example of what I need to do, it would be most welcome.
    David Edwards
    David,
    There are two ways which come to mind here, both using the WebClient:
    The first is that in a BackgroundWorker, you use the synchronous download method. The synchronous method is a blocking call so obviously it can only get one at a time, and when that one is completed, the loop then starts the next.
    The second way - also in a BackgroundWorker - is to use the asynchronous method. The reason for this is because only the asynch method provides events to monitor progress and know when the file has completed. This gets a bit more involved because you're
    still processing them in a loop, but it's definitely something that can be done - I've done it several times.
    You haven't really given many details, so beyond this general conceptual description there's not a lot more that can I can explain, but your goal definitely can be achieved using a WebClient.
    I hope this helps. :)
    Still lost in code, just at a little higher level.

  • How to search for data on the web and return to jsp

    I need to collect data from a web site and return that data to my jsp file. The page should consist of a web page in which the user search for available flights then I conect to easyjet automatically fill in the form and return the result from easyjet.com to my jsp file..Do anyone know how can I do this?? I need to use java for this and not cgi..I found also some JavaScripts that can perform the same thing..Thanks...

    Hi,
    are you able to change dynamically the  operation.url = "assets/data/shopping.xml";?
    i need to do that based on the users input.
    Thanks in advance,

  • How can I use SQL to search for a pattern within a field?

    Hello, Frank, Solomon, ect
    I am now faced with this particular scenario, I've got the SQL to search through a field to find text within the field, but I have to know what it is before it can look for it.
    What I have to do is this:
    Search through a field, for a pattern, and I won't know what the data is I am looking for. Can this be done in SQL?
    For instance, Here is my SQL this far, I was helped allot in order to get to this point.
    select table_name,
           column_name,
           :search_string search_string,
           result
      from (select column_name,
                   table_name,
                   'ora:view("' || table_name || '")/ROW/' || column_name || '[ora:contains(text(),"%' || :search_string || '%") > 0]' str
              from cols
             where table_name in ('TABLE1', 'TABLE2')),
           xmltable (str columns result varchar2(10) path '.')
    When you execute the above SQL, you have to pass in a value. What I really need is to alter the above SQL, to make it search for a pattern that exist's within the text of the field itself.
    Like for instance, lets say the pattern I am looking for is this" xx-xxxxx-xxxx" and it's somewhere in a field.
    I need to alter this SQL to take this pattern and search through all the schemas and tables to look for this pattern match.
    Can be done?

    When you use something dynamically within a function or procedure, roles do not apply and privileges must be granted directly.  So, you need to grant select on dba_tab_cols directly.  If you want to do pattern matching then you should use regular expressions.  The following example grants the proper privileges and uses regexp_instr to find all values containing the pattern xxx-xxxx-xxxx, where /S is used for any non-space character.  I limited the tables in order to save time and output for the test, but you can eliminate that where clause.
    SYS@orcl> CREATE USER test IDENTIFIED BY test
      2  /
    User created.
    SYS@orcl> ALTER USER test QUOTA UNLIMITED ON USERS
      2  /
    User altered.
    SYS@orcl> GRANT CREATE SESSION, CREATE TABLE TO test
      2  /
    Grant succeeded.
    SYS@orcl> GRANT SELECT ON dba_tab_cols TO test
      2  /
    Grant succeeded.
    SYS@orcl> CONNECT test/test
    Connected.
    TEST@orcl> SET LINESIZE 90
    TEST@orcl> CREATE TABLE table1
      2    (tab1_col1  VARCHAR2(60))
      3  /
    Table created.
    TEST@orcl> INSERT ALL
      2  INTO table1 (tab1_col1) VALUES ('xxx-xxxx-xxxx')
      3  INTO table1 (tab1_col1) VALUES ('matching abc-defg-hijk data')
      4  INTO table1 (tab1_col1) VALUES ('other data')
      5  SELECT * FROM DUAL
      6  /
    3 rows created.
    TEST@orcl> CREATE TABLE table2
      2    (tab2_col2  VARCHAR2(30))
      3  /
    Table created.
    TEST@orcl> INSERT ALL
      2  INTO table2 (tab2_col2) VALUES ('this BCD-EFGH-IJKL too')
      3  INTO table2 (tab2_col2) VALUES ('something else')
      4  SELECT * FROM DUAL
      5  /
    2 rows created.
    TEST@orcl> VAR search_string VARCHAR2(24)
    TEST@orcl> EXEC :search_string := '\S\S\S-\S\S\S\S-\S\S\S\S'
    PL/SQL procedure successfully completed.
    TEST@orcl> COLUMN "Searchword"     FORMAT A24
    TEST@orcl> COLUMN "Table"     FORMAT A6
    TEST@orcl> COLUMN "Column/Value" FORMAT A50
    TEST@orcl> SELECT DISTINCT SUBSTR (:search_string, 1, 24) "Searchword",
      2               SUBSTR (table_name, 1, 14) "Table",
      3               SUBSTR (t.column_value.getstringval (), 1, 50) "Column/Value"
      4  FROM   dba_tab_cols,
      5          TABLE
      6            (XMLSEQUENCE
      7           (DBMS_XMLGEN.GETXMLTYPE
      8              ( 'SELECT ' || column_name ||
      9               ' FROM ' || table_name ||
    10               ' WHERE REGEXP_INSTR
    11                     (UPPER (' || column_name || '),''' ||
    12                  UPPER (:search_string) || ''') > 0'
    13              ).extract ('ROWSET/ROW/*'))) t
    14  WHERE  table_name IN ('TABLE1', 'TABLE2')
    15  ORDER  BY "Table"
    16  /
    Searchword               Table  Column/Value
    \S\S\S-\S\S\S\S-\S\S\S\S TABLE1 <TAB1_COL1>matching abc-defg-hijk data</TAB1_COL1>
    \S\S\S-\S\S\S\S-\S\S\S\S TABLE1 <TAB1_COL1>xxx-xxxx-xxxx</TAB1_COL1>
    \S\S\S-\S\S\S\S-\S\S\S\S TABLE2 <TAB2_COL2>this BCD-EFGH-IJKL too</TAB2_COL2>
    3 rows selected.

  • Searching for Data in the Report for a non-selected column in display.

    Hello,
    I have an interactive report as given below:
    select user, dept_name, sal, description, title from hr;
    Now, in the report display options I remove the title and description from the display as you know title and description are 2000 characters each.
    If I show then it takes the whole page to display one record and with this option I can search any text in the Title or Description columns.
    Now, I have hidden these two columns and when I search I do not see any records.
    Can any one tell me how to achieve this behaviour.
    What I am looking is, I do not show the column 'TITLE' or 'DESCRIPTION' and user show be able to search for any important data inside these columns.
    Please let me know how can we do this.
    Please point me to an already published article or solution or any help on this type.
    Appreciate your help on this.
    thanks
    Edited by: user648778 on Sep 18, 2008 6:13 PM

    As far as I can see this will not work. You could use a trick and make a query like this:
    SELECT USER, dept_name, sal,
              apex_item.hidden (10, mgrdescription || title)
           || '<img src="#IMAGE_PREFIX#some_nice_icon.gif">' title_description
      FROM hrThis would not display the title and description but an image and it would give you a possibility to filter on those.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Advantages of using BAPI over LSMW for data transfer

    Hellow,
    Can anybody please give an input for advantages of using BAPIs in data transfer compare to LSMW. If we use BAPI for data transfer of master and transaction data how it is more usefull compare to LSMWs developed.
    Thanks in advance
    Raghav

    Hi Raghavendra,
    Refer the links..may help.....
    [http://www.*******************/search?q=BAPIandLSMW+comparision]
    [http://www.*******************/search?q=bapi]
    Regards,
    Mdi.Deeba

  • Character encoding problems when using javascript client-sdk for remoting

    Hi,
    I have recently downloaded LCDS to try.  I was interested in using Javascript for remoting.  I have a Java-based web application on the server side, and use HTML + Javascript (dataservices-client.js) to send/receive messages asynchronously in AMF format.
    I can both send and receive data (not only simple types, but objects with several attributes), however when I receive data from the server side that contains special chars (e.g. á, ï), I get some gibberish in my javascript objects. This is not same when I send content to the server: All special characters are received (printed) correctly in Java (server side).
    I inspired my coding with the simple example shown in https://blogs.adobe.com/LiveCycleHelp/2012/07/creating-web-applications-using-html5javascr ipt-remoting-client-sdk-with-livecycle-data-services.html
    Is there any bug on the serialization?
    My software version is Adobe LiveCycle es_data_services_JEE_4_7_all_win
    Java container is WebLogic 11g.
    Thanks
    =======
    Edited Apr 11 2014
    In my attempts, I tried using AMFX serialization so that I could see the message in a more comprehensible format inside my browser (eg using firebug).  After configuring an HTTP channel and destination in the server side, and adjusting accordingly in the client side code, the Javascript API still sends binary!
    Sadly, I concluded that client-SDK isn't mature enough...
    By the way, if you send an String like "&aacute" from the server, in the client you get "á"... instead of the raw "&aacute" ... they forgot escaping.

    hey,
    I had a similar experience. I was interfacing between 4.6 (RFC), PI and ECC 6.0 (ABAP Proxy). When data was passed from ECC to 4.6, RFC received them incorrectly. So i had to send trimmed strings from ECC and receive them as strings in RFC (esp for CURR and QUAN fields). Also the receiver communication channel in PI (between PI and  RFC) had to be set as Non unicode. This helped a bit. But still I am getting 2 issues, truncation of values and some additional digits !! But the above changes resolved unwanted characters problem like "<" and "#". You can find a related post in my id. Hope this info helps..

  • Search for text in PDF by VBA with only Adobe Reader installed

    My problem is widely known and frequenty posted, for instance:
    "Can anyone help me to open and search for a specific text string in a PDF document, return a true or false indicator (and nothing else)?"
    The answers mostly refer to and include
      Set gApp = CreateObject("AcroExch.App")
    which, as I understand, works only with a certain level of Adobe Acrobat being installed.
    My question now:
    I want to give this type of functionality (via an MSAccess Form, i.e. populate a ComboBox with PDF filenames which answer YES to certain text occurences)  to - say 20 - users in my company who have Adobe Reader 9.1 installed and not more.
    Bying this number of Adobe Acrobat licenses for just this purpose would be a heavy overkill which I just can't afford.
    Any suggestions? many thanks in advance.

    Now we would like to search in this PDF binary for an special text or string to use them for changing filename. Is there any way to do that?
    Based on your posting it sounds a bit like you're doing ABAP processing. However, I'll ignore that for now and just say that in the Java environment I have had good experience with the Java Library [iText PDF|http://itextpdf.com/]. I'm not sure what SAP offers in that area, but they must have something, because [TREX|http://help.sap.com/saphelp_nw70/helpdata/EN/a4/929d4206b70931e10000000a1550b0/frameset.htm] "understands" PDF (though that doesn't mean that you have a nice API for parsing PDFs).
    You probably investigated this already, but I'd take a look at possibilities to hook in before (or at the time) the PDF gets generated (might be easier to craft and export a filename there). Thanks to the [enhancement framework|http://help.sap.com/saphelp_nw70ehp2/helpdata/en/94/9cdc40132a8531e10000000a1550b0/frameset.htm] you usually have quite a few ways to get things done...
    Note that even if you're able to read a PDF, it doesn't necessarily mean that you can parse it the way you want. A silly example would be scanned pages, where the page is stored as an image and at best the scanner software runs some OCR (with possibly buggy results) to provide capabilities for searching the PDF. In your case that's probably not an issue, but still the question might be if the information you're looking at is structured enough to get it back...
    Cheers, harald

  • How to search for data in active directory

    if i have an administrator priviledge, how can i search for user's data if i know his username from active directory.

    What form do you have the user's name in ?
    ANTIPODES\alberteString searchFilter = "(&(objectClass=user)(samAccountName=alberte))";[email protected] searchFilter = "(&(objectClass=user)(userPrincipalName=[email protected]))";Albert EinsteinString searchFilter = (&(objectClass=user)(givenName=Albert)(sn=Einstein))";or using Ambiguous Name Resolution (anr)String searchFilter = "(&(objectClass=user)(anr=Albert Einstein))";or it's even clever enough to useString searchFilter = "(&(objectClass=user)(anr=Einstein Albert))";

  • Searching for phrase in PDF via Preview

    Gang,
    I'm trying to search for some text in a PDF document using Preview. If I enter more than one word in the search box, it displays all instances of either word individually. How can I search for the exact phrase? I tried enclosing the text in quotes, but that didn't work.
    thanks,
    Dennis

    I am with you 100%. This did NOT used to work for me but I decided to give it a shot since this person was saying it worked for them. It works now and I'm happy but they must have fixed this in a recent update.

  • Creating Bookmarks in form using JavaScript on searched string.

    Hi all,
    I am currently working on SAP Adobe Form to which I need to add bookmarks
    dynamically where the Searched string is found and this should be done during
    its Assembly. Any help is appreciated.
    Edited by: gopbhav on Jul 19, 2010 8:12 PM
    Edited by: gopbhav on Jul 19, 2010 8:28 PM

    Otto,
    We have forms created with bindings as well as document (word document) are being (merged)/populated dynamically.
    After it has been compiled I need to do a search for "string" and where the first "string" is matched I need to add a bookmark to that particular page. Bookmarks are used widely in Acrobat and there is a JavaScript to create bookmark available but the code for Adobe LC/ SAP Adobe Form is different. So I need help if someone knows how I go about do this.
    gopbhav

Maybe you are looking for

  • Captivate 6 - Published - PDF does not play quiz questions

    I just published my captivate 6 presentation.  I am launching the .pdf file to view.  At the end, the quiz questions do not work.  I get a white screen and not my questions.  Any ideas?  Thanks

  • HP C8180 All in one continually cycling on and off

    My C8180 has had problems continually cyling on and off throwing errors telling me to use the power switch ando not to unplug the power source.  This started happening after a power outage while it was on.  At one point after several recycles, I got

  • For those who own FCP....

    Hi I know this is the iMac board, but my question is if you have Final Cut Pro, and use the iMac 2.1 Ghz (isight) how much RAM did you upgrade to? And if you did upgrade how does it run. Right now I have 512 MB and I was thinking about upgrading to 1

  • COM object that has been seperated from its uderlying RCW cannot be used

    What exactly does this error mean? I receive this error when I perform "Unload All Modules" from the sequence editor using TestStand 4.2.1.83 development system, which is part of NI Developer Suite 2010 DS1. It causes TestStand to crash citing that e

  • Auto Create TOC

    I'm using Adobe RoboHelp 9.0.2.271. I'm using the Auto Create TOC feature but my table of contents is created in the manner the topics were added to the system, not alphabetically. According to "help", when I use this feature, it should be created ac