Extraction of Specific data

I have a few PDF documents in which i have repaeting data's. i would like to extract the spoecific data i want and send it to a .csv or spreadsheet.
E.g
PO no. 17638765213
For the above i just need the number which is coming after the word PO.
How do i work and get it done?

Here is a link to a blog entry that will help
http://www.raymondcamden.com/index.cfm/2007/7/25/Reading-text-from-a-PDF-in-ColdFusion-8
Ken

Similar Messages

  • How can I use Automator to extract specific Data from a text file?

    I have several hundred text files that contain a bunch of information. I only need six values from each file and ideally I need them as columns in an excel file.
    How can I use Automator to extract specific Data from the text files and either create a new text file or excel file with the info? I have looked all over but can't find a solution. If anyone could please help I would be eternally grateful!!! If there is another, better solution than automator, please let me know!
    Example of File Contents:
    Link Time =
    DD/MMM/YYYY
    Random
    Text
    161 179
    bytes of CODE    memory (+                68 range fill )
    16 789
    bytes of DATA    memory (+    59 absolute )
    1 875
    bytes of XDATA   memory (+ 1 855 absolute )
    90 783
    bytes of FARCODE memory
    What I would like to have as a final file:
    EXCEL COLUMN1
    Column 2
    Column3
    Column4
    Column5
    Column6
    MM/DD/YYYY
    filename1
    161179
    16789
    1875
    90783
    MM/DD/YYYY
    filename2
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    MM/DD/YYYY
    filename3
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    Is this possible? I can't imagine having to go through each and every file one by one. Please help!!!

    Hello
    You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
    set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
    if f ends with "/" then set f to f's text 1 thru -2
    do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
    use strict;
    use open IN => ':crlf';
    chdir $ARGV[0] or die qq($!);
    local $/ = qq(\\0);
    my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
    local $/ = qq(\\n);
    #     CSV spec
    #     - record separator is CRLF
    #     - field separator is comma
    #     - every field is quoted
    #     - text encoding is UTF-8
    local $\\ = qq(\\015\\012);    # CRLF
    local $, = qq(,);            # COMMA
    # print column header row
    my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
    print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    # print data row per each file
    while (@ff) {
        my $f = shift @ff;    # file path
        if ( ! open(IN, '<', $f) ) {
            warn qq(Failed to open $f: $!);
            next;
        $f =~ s%^.*/%%og;    # file name
        @dd = ('', $f, '', '', '', '');
        while (<IN>) {
            chomp;
            $dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
            ($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
            ($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
            ($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
            ($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
            last unless grep { /^$/ } @dd;
        close IN;
        print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    EOF
    Hope this may help,
    H

  • Putting a specific date range in an SQL query

    Hello team,
    I have a query that i have to run every month but still i have to extract information for a given time period.
    Please advise.

    SELECT gcard.ncrd as "CARD NUMBER",
    GPCSTMER.TFNAMCSU || ' ' || TNAMECSU "CUSTOMER NAME",
    TO_CHAR(GCARD.DISSUCRD,'DD-MM-YYYY') AS "FIRST ISSUE DATE",
    case when GCARD.CRSVLCRD = '000' then 'VALID '
    when GCARD.CRSVLCRD = '001' then 'LOST CARD '
    when GCARD.CRSVLCRD = '002' then 'STOLEN CARD '
    when GCARD.CRSVLCRD = '004' then 'FAULTY CARD '
    when GCARD.CRSVLCRD = '005' then 'RETURNED CARD '
    when GCARD.CRSVLCRD = '006' then 'STOP CARD '
    when GCARD.CRSVLCRD = '007' then 'SUBSTITUTED CARD '
    when GCARD.CRSVLCRD = '008' then 'CARD NOT ACTIVATED'
    end "CARD STATUS ",
    CASE
    WHEN Gaccount.CSTATACT = '000' THEN 'NORMAL '
    WHEN Gaccount.CSTATACT = '001' THEN 'GREYLIST '
    WHEN Gaccount.CSTATACT = '002' THEN 'CLOSED '
    WHEN Gaccount.CSTATACT = '003' THEN 'BLOCKED '
    END "ACCOUNT STATUS",
    TO_CHAR(GCARD.DEXPICRD,'DD-MM-YYYY') AS "EXPIRY DATE" ,
    case when GCARD.CUTYPCRD = '001' then 'PRIMARY '
         when GCARD.CUTYPCRD = '002' then 'AUTHORISED '
    end "ACC TYPE"      
    FROM GCARD,GACCOUNT,GRACTCRD,GPCSTMER
    WHERE GCARD.NCRD = GRACTCRD.NCRD AND
    GCARD.NBIN = GRACTCRD.NBIN AND
    GACCOUNT.NACT = GRACTCRD.NACT AND
    GACCOUNT.NBIN = GRACTCRD.NBIN AND
    GCARD.CRSVLCRD = 000 and
    Gaccount.CSTATACT = 000 and
    GPCSTMER.NCST = GCARD.NCST AND
    GCARD.NBIN IN (515869) AND
    PAN_INDEX_RANGE_ID = 50
    ORDER BY GCARD.DISSUCRD,gcard.ncrd,PAN_INDEX_RANGE_ID;
    This my whole query and when i extract the information i have for the whole range.. but me i want to input for a specific date range

  • How can I go to a specific date in the future other than by clicking one month at a time?

    Would like to go to a specific date several years from now and see what else I have scheduled (if any) or to see if that day is a holiday or even just to see what day of the week that day falls on. Can I do this in some way other than clicking on the NEXT MONTH button a gazillion times?
    I am using Windows 7 (64-bit) on a Dell THX computer.
    Thanks,
    DannyBoy

    tried clicking on the year in the calendar?

  • How to get users' login logout time for user IDs for a specific date?

    Dear All,
    There is a case I being requested to retrieve the Userid, User Name,
    User Group, User Dept, Date, Login Time, Logout Time in a specific date, for example, 21.05.2009.
    How should I retrieve the information? The user want to input specific date and user group then return the details that mentioned above.
    I try with SUIM->Users->By Logon Date and Password Change... but I can't specific the date that I want ...
    I try with SM19 (Security Audit Log), but unfortunately in my system this is not activated.
    I've seek for SAP's advise, and they say need to ask abaper to developr a report in order to get such details....
    Do you guys have any other methods?
    Do you guys know which tables will contain the details as mentioned above?
    Best Regards,
    Ken

    Unfortunately without the audit log, you're going have a hard time finding this information.  As mentioned, ST03N will give you some information.  If your systems daily workload aggregation goes back to the date you require then you'll be able to get a list of all users who logged on that day.  ST03N doesn't keep time stamps just response times.
    My only idea is VERY labor intensive.  If your DB admin can retrieve a save of the database from that day then table USR02 will hold a little more information for you.  It will contain last login times for that day.  If your system backup policy happened to have saved the contents of folder "/usr/sap/<SID>/<instance>/data" then you potentially have access to all the data you require.  The stat file will have recorded every transaction that took place during that day.  If that file is restored you could use program RSSTAT20 to query against it.
    Good luck and turn on the audit log as it makes your life much easier!

  • Custom Report for the Stock and Stock value for a specific date

    Hi SAP Gurus,
    Is there any SAP standard t-code or any logic to get the transcations (additions (for example: Purchases) and subtractions (Sales) to the inventory) for a particular materials in a plant and with Total Stock and also Total Stock value when that particular transaction happened?
    Our system is R/3 4.7
    I looked at the MB5B, MBCE, MBCA, MC44, MB51 and some other standard T-codes but could not find the total stock value at the time of Transaction happened.
    The history tables MBEWH and MARDH  are updated after the month end closing procedures, right, which means I will have the inventory value changing every month if material has Price "S".
    Thank you,
    -Harter

    Hi Harter,
    Unfortunately, you cannot see in a single tcode the value of stock and stock quantity on a specific date. As you yourself have pointed out, we only have to make use of the history table MBEWH, MARDH for the month wise stock quantity and value. Along with that you should also make use of the table MBEW to take teh stock quantity and value. So the total value of stock on a particular date will be
    Stock qnty = MBEWH value until the previous month (for teh specific valuation class, period etc) + MBEW value for the present date.
    But this will nto work out if you want to find out teh stock quantity and stock value on a past date basis. For past data, only  m onthwise data is available. For this anyway you can refer to MC.1 and so on reports.

  • How to marking email for follow up on a specific date

    In projects I often receive e-mails which need to be followed up/chased by a specific date in the future. I would like to be able to mark them with a specified date and then file them in the relevant mail folder. On the date specified either the email re-appears in your in box for action or a reminder is sent.
    The flag option is fine - but does not really help if one has many e-mails to follow up on different dates.
    This must be feature which would be useful to 1000's of users - does it exist is there a work round? I have not found this feature on other e-mail applications including Yahoo.
    Thanks in advance.

    There are always programs on http://www.tuaw.com that do things like this. I don't know if any of them specifically do this. They always want to suck you in and live in their little iGTD world. I don't really conform to that. I am trying to write software that I would want to use. This seems like one that would fall into that category. Simple, easy-to-use, does one thing well, and doesn't get in your way.

  • How do I mark an e-mail message for followup on a specific date?

    I want to mark an incoming e-mail message to be followed up on a specific date/time.  When that date arrives I want a reminder to pop up on my desktop.  I can do this in Outlook, but would rather use the native Mac Mail if possible.
    Walt

    For some reason the Drag-and-Drop to the Calendar followed by Drag-and-Drop to Reminders does not work for me.
    I found a much more elegant solution using Automater here:
    https://discussions.apple.com/message/16569500#16569500
    Thanks to Chuck Kalish for contributing the code.  Now I can create the reminders with a single keypress, and I can also modify the code to tailor the exact text of the reminders to suit my needs.
    Walt

  • Storage Location wise Stock details on a specific Date

    Dear All,
    Please help me with any T-code or Process by which I will be able to view the opening & closing stock storage location wise on a specific date. In MC.9 it shows the stock on current date or Month-End. In MB5B it will show the stock but not storage Location wise. Requires your sincere advise in this regard.

    HI , 
    There arent many reports  for date wise stocks in satnadard SAP. you will have to run MB5B  storage Location wise for the specified dates. OR
    you can try this one report J3RFLVMOBVED -STOCK OVERVIEW(RUSSIA) ,  Run it and save  a layout.  It should  solve your  problem.
    Regards
    Raviraj.

  • Table for Stock on Specific Date in the Past.

    Hi ..,
    Please give me the Name of the Table to find the stock on Specific Date for a given material in the Past. like the T.code we use MB5B.
    regards.

    Hi
    MB5B uses a list of tables & logic to get the Stock for a particular posting date.
    if you want the stock run this report in your Z- report & export the Values to your Z-report & use them accordingly.
    Hope this helps
    Thanks & Regards
    Kishore

  • Prooject stock on specific date

    is there any report so that we can see the project material with value on the specific date, beacuse mb5b is not displaying the value with special stock.

    MB5B is the good report ..
    U can copy & customize this report for adding new columns for value..

  • List of Open AP Goods return on a specific Date

    My customer needs a list of all open AP goods return, that were still open on a specific date.
    They need to do this for month end, the open list, has to match what is in the Trial balance at month end.
    I have tried with open item list, but this only shows me as of today.
    I have tried with the General ledger by BP, but since the Goods return does not affect the Accounts receivable it is not displayed in this report.
    I have also tried creating a report, but there is no information in the ORPD table that allows me to filter properly.
    does anyone have any suggestions ?
    Thanks
    Sophie

    Sophie,
    One possibility is to use ADOC (history table)
    SELECT * FROM ADOC WHERE ObjType = 21
    Pick the columns you want to display.

  • My Iphone was sync with Itunes on a computer then this computer broke down and i purchased another one. I was able to extract all the data from the old one. now how can i sync my phone with the new tunes without loosing any data?

    My Iphone was sync with Itunes on a computer then this computer broke down and i purchased another one. I was able to extract all the data from the old one. now how can i sync my phone with the new tunes without loosing any data?

    Yes, windows to Mac too.
    iTunes: How to move [or copy] your music [library] to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Open iTunes and immediately hold down the Option (alt) key (shift on Windows), then guide it to the new location of the library.
    Windows users see tip at: https://discussions.apple.com/message/18879381

  • Share calendar from a specific date

    I am spending three months in the US visiting family. While I am here, I'd like to share certain calendars with my family members (doctor's appointments, social engagements, etc.), but don't want them to be able to see every such appointment I've had going back several years. When I start sharing a calendar, is it possible to only show it starting from a particular date? Or for a specific date range? I know I could create an extra calendar to use just for this, but I'd rather not have to do that if possible.
    Thanks!

    Hi,
    The SearchQuery parameter specifies a search string or a query formatted. You can limit your search to specific types of files, such as "kind:email".
    Here is a related article which can help you for your reference.
    Advanced Query Syntax
    http://msdn.microsoft.com/en-us/library/aa965711(VS.85).aspx
    Here is a related thread for your reference.
    http://social.technet.microsoft.com/Forums/exchange/en-US/1f6cc2cd-b5fe-483d-aea7-d8fa20937614/error-cmdlet-searchmailbox?forum=exchangesvrgenerallegacy
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • Is there a way to trigger an action on or after a specific date?

    Hi,
    I wanted to set up AS3 to trigger an action on or after specific dates (quarterly, 1/1, 4/1, 7/1, 10/1). Is this possible?
    I can script getting today's date, but I am not sure how to script: if today's date is  greater than or equal to (>=) one of these quarterly dates (greater than is essential since the video may not run on the specified date, so greater than is needed). Year is not needed, since the goal is quarterly action. But, would need to start over each new year, so quarterly action continues each year. Can't seem to get my brain around how to construct this and how to script it.
    Any help appreciated.

    if you can accept the user's date, you can compare the user's date's time property with your date's time property:
    var triggerDate=new Date(2013,0,1);
    var userDate=new Date();
    if(userDate.time>triggerDate.time){
    //do whatever

Maybe you are looking for

  • ? with java on what should i get also more ? help plz ?

    i need to know what java i should use for the enternet this java i need is to run programs on the enternet like games exd. and ways can you give a link and step by step on how to instal java im useing redhat linux 8.0 yes i am a noobie

  • Time Schema Unable to use SCOND=T/F operation in IF...ELSE....ENDIF loop

    Requirement: Hourly EEs(EG-2) with TMS 9 should not be processed for any country. except for above all the other EG & TMS combinations should be processed. hence I have incorporated the logic in the schema: started with a if loop, if NGE, then proces

  • Material Staging for Production

    Hi, When WM is implemented, is it really necessary to use Production supply area and Control Cycle? or only Interim storage area 100 is sufficient? We are not using any KANBAN features,, Regards Shrinivas

  • UWL Display Connection

    Hi, We are facing one issue in UWL SAP. When are refresh the UWL, System gives us a message that ERROR for WHILE CONNECTING TO SYSTEM. This is temporary issue. Not Permanent and this issue is for specific user. We are providing the SAP_ALL to Backend

  • ITunes won't properly upload photo/images onto iPod nano

    Everything else is working just fine and this isn't really a huge issue but just irritating. iTunes has just today decided to not copy photos to my iPod nano after I selected a different photos folder to copy in the preferences window. As usual it di