Text extraction from a pdf

Hello,
I am trying to convert pdf documents in plain text but the output is disappointing.
The document was generated using acrobat pdf printer from Microsoft Word.
Opened the resulting pdf in Acrobat Reader and did a "save as text" on it.
The resulting text is broken, letters are missing or doubled. Is there some catch to it?
I cannot understand why Acrobat cannot interpret its own files.
Best regards,
Vlad

Acrobat can only work with what is present in the file. For instance,
in some cases there is just a scan, a picture, and no text can be
extracted.
Sometimes letters are doubled up when the document's creator used
"fake bold", where letters are printed twice to make an illusion of
bold text.
Aandi Inston

Similar Messages

  • Is there a way to copy text boxes from one pdf file to a different one?

    is there a way to copy text boxes from one pdf file to a different one in Acrobat 11?

    Yes. In Form Edit mode select the field(s), press Ctrl+C and then move to
    the other file and press Ctrl+V.

  • Text extraction script for pdf documents

    Hello Everyone,
    As everyone in the U.S. knows Tax Season has begun.  I am looking to the Apple Community for help with  a script that will help me mitigate the daunting task of manually extracting data from my bank statements to put into my expense tracking software.  The software that I am using at the moment is "Neat Receipts" which will only inport ."pdf" and image files.  I have very limited scripting knowledge at this point, however, I have begun the process of learning the craft.  With deadines steadily approaching I have put off the task of manually combing through hundreds of pages of docs in search of a more eficient way of accomplishing this task.  Therefore, I have turned to the Apple Community for help for myself and possibly millions of others with the same issue.
    Thus far, I have downloaded all of my bank statements for the last year and have organized them into a folder on my desktop.  Each file is labled by a specific name, such a "TD Bank Statement - Jan 2012.pdf".  I would like to go about extracting the data from the pdf in a way as to be able to reimport it back to a seperate pdf file under a new name.  First, I would like to select the folder containing all the bank statements.  Second, I would like to retrieve the "Transaction Date", "Vendor", and "Transaction Amount" from all the stements.  Third, I would like to combine the, Date", "Vendor", and "Transaction Amount" and place it into a new "pdf" file.  Last, I would like to name the new file with the date of the transaction followed by the vendor, a delimiter, and then the file name from which the transaction originated fileNext export a single trasnaction to a new pdf, and give the file the name of its "transaction date.  
    Here is a sample of the data I am looking to capture:
    Sample Data would look like this:
    12/6/13, WAL WAL MART SUPER, $25.37
    Sample file output would look like this:
    12/6/13, WAL WAL MART SUPER - TD Bank Statement - Jan 2012.PDF
    I am actively working on this, as I type this, to test my knowledge and ability to solve this problem myself.  I would like some feedback, input, and help with this
    First, I believe the script should first perform an OCR of the "pdf file
    Second, variables should be set to tell the script what to look for (Date), (transaction Amount), and all lines proceeding until it hits another (date)
    Third, group all lines and insert (delimiter) in place of hard returns and tabs
    Fourth, export grouped data into (new pdf) fie
    Fifth, rename the (new pdf) file with (Transaction date) followed by (delimiter) followed by original file name

    Acrobat can only work with what is present in the file. For instance,
    in some cases there is just a scan, a picture, and no text can be
    extracted.
    Sometimes letters are doubled up when the document's creator used
    "fake bold", where letters are printed twice to make an illusion of
    bold text.
    Aandi Inston

  • Extractions from Searchable PDFs - Even After Auto-Tagging Cannot Save as PDF/A

    I'm currently extracting relevant parts from 100+ page PDF files, but cannot save the extractions as PDF/A if they come from a searchable version, even after adding auto-tagging via the Accessibility function, but I can do so if they come from a non-searchable version of the PDF. Is this normal? If so, how do I convert a searchable PDF to a non-searchable one so that I can save its extracted pages as PDF/A?
    After looking into this further, it now seems as though I cannot convert certain documents, whether searchable or non-searchable, into PDF/A. Could the person who sent these to me have saved them in a way to prevent conversion into PDF/A? This is a required standard for legal documents.
    Message was edited by: Paul Ulrich

    In Preflight, after I use "analyse and fix", three red X's appear next to
    (1) Convert to PDF/A-1a;
    (2) PDF document is not compliant with PDF/A-1a (2005); and
    (3) True Type font has differences to standard encoding but is not a symbolic font.
    Does this mean it could be compliant with PDF/A-1b, which would be good enough for legal documents (just need to be PDF/A)? However, with other documents that reached PDF/A-1b, when I open them, I light grey band appears at the top saying they purport to be PDF/A Compliant. That, however, does not happen with these documents... so how do I know if they are PDF/A okay?

  • Javascript to fill text field from other PDF form

    I am trying to figure out if it is possible to add javascript to a text field that when initiated pulls text from another field in a closed pdf in the same directory.
    For example I have a NAME field in the pdf form I am working in....
    When I initiate the script the NAME field is filled in with the same data from another PDF that is closed.

    I have looked up the 'disclosed' property and it looks like that is what I want to do..
    I have "this.disclosed = true" in a PDF with the name field. On the other PDF that I want the information replicated I am going to add a javascript to an action somewhere on the document, my problem is which script do I use to get this data from the other pdf?  Is the pdf that is now accessible via javascript (disclosed) a data object?

  • Ways to extract text/data from a pdf

    I have just been given five large boxes of documents which are old work orders which include (in the same position on every page) a customer's name, address, tel etc.  I'm pretty adept at scanning stuff to pdf using Adobe Acrobat 9.0 Pro (version 9 5 1 283) but I don't know how (if it's even possible) to batch scan just that part of the page which contains the customer data and save it to Excel or csv or similar.  I know I could highlight the required text on each page and copy and paste it into Excel but is there a more elegant solution?  To create the pdf, I can scan using our office Epson all-in-one (although it's on the other side of the office) or a Neatdesk Scanner I'm trying out.  The latter scans the pages quickly but if I set the Neat software to treat the document as a contact card, it only picks up our company address from the top of the page and ignores everything else ;-)  I'm running Windows 7.

    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

  • Extracting from a pdf with preview

    A few months ago, i have extracted details of an pdf-document with the following workflow: selecting an area with the mouse, apple-c (for copy), apple-n (new document of the between file). Then preview opend a new pdf-document with the selected details.
    Now, a few months later, preview opens with the whole content of the page, where the selection happens.
    Can anyone help?
    Achim

    The best way to extract part of a pdf document is to use the built-in capture function (command-shift-4) and select the area you want with the mouse. Your selection will be saved to the desktop as a png file which will open with preview.

  • Adobe 9 Pro - text flow from imported PDF

    We are updating our forms to mailable, fillable PDF documents and there are instances where we need to have two or more lines to fill in and wrap the text. My problem is once i have the text box where i need it to be (as shown above by line #2), i cant shrink it to start where i need it to be without compromising the whole text box. I need it to start where the red arrow is and wrap down to the second line. As you can see there are words behind the start of the text box that have to stay there as they are part of the original form. Any suggestions? Thanks!

    Ignore the ability to use the first bit. Either that or you will need to do some Javascript programming to count the number of letters and then sending the user to a new field below it. Not worth the effort. The form was designed for filling things out by hand, not computer.

  • Layout in Arabic, Russian and Chinese. Exporting text from a PDF

    I am laying out long documents in Arabic, Russian and Chinese. The text has been provided as a PDF when I copy and paste this into Indesign it comes up as boxes question marks and other characters having nothing to do with the text I am trying to layout.  I have set the typeface to the Myriad Arabic and the Arabic dictionary still nothing resembling Arabic or any language for that matter. Same with Chinese and Russian. Any suggestions on how to get the text in from the PDF where it is the actual language. Appreciate any help with this.  Thank you.

    Thanks for the callout, Ellis
    Soooo, KK: you are in for a world of hurt. The intials "WP" at the beginning of these fonts means that the text came out of WordPerfect. Doing multilingual layouts in WP was annoying, but possible. It was developed in the pre-Unicode world where every single method of complex-script layout was a dirty hack. If you like knowing All of the Nerdy Dirty Details, I can tell you how it worked, but suffice it to say that trying to harvest non-Latin-script text from WP and repurpose it for use in InDesign is just pure pain. The WordPerfect-specific codepages were never really supported anywhere outside of WP.
    That being said, I have a script laying around somewhere for conversion of WP-Cyrillic into Unicode. (Actually, I think it does Windows CP 1251, but that works just as well.) But that is only one out of forty-five languages? And the Chinese has been rasterized? And the PDFs were originally generated by Distiller 3? If you have any choice, it's time to walk away. If you don't have any choice, I really hope you are billing hourly. My experience in this area (painfully extensive) is that it will cost three to five times as much to extract the text as it would to have a translation professional rekey the text, and then to have a second translation professional review the rekeyed text looking for typos.
    Russian OCR is pretty damn good these days, but Chinese OCR is hit-or-miss. I have never seen good Arabic OCR - doesn't mean it's not out there, but I couldn't help you find it.  But chances that all 45 languages have reliable OCR available, and that the result of said OCRing will not need to be reviewed by someone who knows the language, are basically nil.

  • Pdf text extract problem with CID font and Identity-H

    Hi all,
    Iam facing some big problem with text extraction from pdf file.
    Currently iam using congviews pdf2xl text extraction tool.
    About 95% of the text extract correcly but few charaters showing box some ? and some dotted circle mark.
    Font Used:
    ArialUnicodeMS(Embedded Subset)
    Type:(True Type (CID)
    Encoding:Identity-H
    TimesNewRomanPSMT
    Type:True Type
    Encoding:ANSI
    ActualFont:TimesNewRomanPSMT
    ActualFontType:TrueType
    Anyone please help me to overcome this.
    Regards
    Gilbert.X

    I tried with acrobat pro9 export option it retrieved only alphabets and numbers all of the hindi charcaters showing just ........
    By the way how can i upload the my pdf file within this forum please guide me.
    Regards
    Gilbert.X

  • How to extract text from a PDF file?

    Hello Suners,
    i need to know how to extract text from a pdf file?
    does anyone know what is the character encoding in pdf file, when i use an input stream to read the file it gives encrypted characters not the original text in the file.
    is there any procedures i should do while reading a pdf file,
    File f=new File("D:/File.pdf");
                   FileReader fr=new FileReader(f);
                   BufferedReader br=new BufferedReader(fr);
                   String s=br.readLine();any help will be deeply appreciated.

    jverd wrote:
    First, you set i once, and then loop without ever changing it. So your loop body will execute either 0 times or infinitely many times, writing the same byte every time. Actually, maybe it'll execute once and then throw an ArrayIndexOutOfBoundsException. That's basic java looping, and you're going to need a firm grip on that before you try to do anything as advanced as PDF reading. the case.oops you are absolutely right that was a silly mistake to forget that,
    Second, what do the docs for getPageContent say? Do they say that it simply gives you the text on the page as if the thing were a simple text doc? I'd be surprised if that's the case.getPageContent return array of bytes so the question will be:
    how to get text from this array? i was thinking of :
        private void jButton1_actionPerformed(ActionEvent e) {
            PdfReader read;
            StringBuffer buff=new StringBuffer();
            try {
                read = new PdfReader("d:/getjobid2727.pdf");
                read.getMetaData();
                byte[] data=read.getPageContent(1);
                int i=0;
                while(i>-1){ 
                    buff.append(data);
    i++;
    String str=buff.toString();
    FileOutputStream fos = new FileOutputStream("D:/test.txt");
    Writer out = new OutputStreamWriter(fos, "UTF8");
    out.write(str);
    out.close();
    read.close();
    } catch (Exception f) {
    f.printStackTrace();
    "D:/test.txt"  hasn't been created!! when i ran the program,
    is my steps right?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to extract text from a PDF file using php?

    How to extract text from a PDF file using php?
    thanks
    fabio

    > Do you know of any other way this can be done?
    There are many ways. But this out of scope of this forum. You can try this forum: http://forum.planetpdf.com/

  • Extract text from hebrew pdf using adobe ifilter 6.0 reverse the letters

    Hello pdf Users
    I'm using adobe Ifilter 6.0 to extract pdf text from Hebrew documents. The text returned from the filter is reversed both in the letters inside a word, and in the word order.
    Example (given in English letters)
    Who am I
    will give
    I ma ohW
    This is a known issue in bidi (bidirectional, meaing right-to-left) languages lie Hebrew and Arabic, but I think I saw that Ifilter should supports hebrew OK?
    Any help?
    Roee

    Try the Adobe Acrobat Pro forums.

  • How to Extract Text coordinates from PDF

    Hi,
    can anyone tell me how to get coordinates in pdf document using VB or .NET, suppose if some text is written in pdf document then how can i get coordinates of that text. Its very Urgent.
    Thanks in Advance.

    I am trying to use the getPageNthWordQuads information to determine if a word on the page is within a region that I am interested in.
    I have a limited knowledge of javascript and have been looking up text manipulation functions and array manipulation functions in an attempt to figure out how to separate the values that are returned from the Quads routine. The Adobe documentation indicates that the Quads function returns an array, but when I try to access one of the values in the array, it gives me the entire contents of the array as though it is a string. If I use the .length function to try to determine the length of it, it tells me it is length of 1! I obviously am mis-handling this reference, but I have yet to find any specific examples that work with the quads array the way I am trying to work with it....
    Here is my code...I am running it against an open file in batch processing mode(maybe this has something to do with it)...
    var sourceDoc = this
    var tx1=492.5;
    var ty1=761.5;
    var tx4=563;
    var ty4=726.2;
    try {
    for (var j = 0; j < (this.numPages); j=j+2){
    var cnt=0;
    var rcvrnum="";
    cnt = sourceDoc.getPageNumWords(j);
    if (j == 0) {
    try {for (var i = 0; i < cnt; i++) {
    var quads = sourceDoc.getPageNthWordQuads(j,i);
    var x1 = quads[0];
    console.println("Page(" + j + "),Word(" + i + ") = " + sourceDoc.getPageNthWord({nPage: j, nWord: i}));
    console.println("Quads length is " + quads.length);
    console.println("X1 = " + x1);
    if ( x1 >= tx1 & x1 <= tx4 & y1 >= ty4 & y1 <= ty1 ) {
    console.println("Q1 is good");
    console.println("Page(" + j + "),Word(" + i + ") = " + sourceDoc.getPageNthWord({nPage: j, nWord: i}));
    } catch (e) { console.println("Aborted: " + e) };
    } catch (f) { console.println("Aborted: " + f) };
    I have tried several variations of the code above to try to extract my values so that I can compare them, but to no avail. The above code outputs to the console the following...
    Page(0),Word(0) = OTTO
    Quads length is 1
    X1 = 19.350006103515625,782.15087890625,126.51744079589844,782.15087890625,19.350006103515625, 721.5038452148438,126.51744079589844,721.5038452148438
    Page(0),Word(1) =
    Quads length is 1
    X1 = 125.17047119140625,782.15087890625,153.91525268554688,782.15087890625,125.17047119140625, 721.5038452148438,153.91525268554688,721.5038452148438
    and so on...
    x1 becomes the entire output from the array and yet I can not perform a simple split function on x1. If I try to split X1 into an array by splitting on the comma, I get the following error.
    Aborted: TypeError: x1.split is not a function
    Am I supposed to import some libraries or something?
    Thanks for any help....
    Kevin Ailes

  • How can i extract the text from the PDF files,Power point files,Word files?

    hi friends,
    i need to extract text from the PDF files,Power Point,Ms word files.Is it possible with java?if yes how can i extract text from those files.please give solution this problem.i would be thankful if u provide solution.
    regards,
    prakash.

    Find an API which could read each of those files and start coding.

Maybe you are looking for

  • IPod won't recognize on my new computer

    I got a new computer I installed Ipod software cd and iTunes and I can't get my Ipod to show up with my music on iTunes or in Windows. Any suggestions?

  • Compiling Pacman on Debian System [SOLVED]

    Hi, I am trying to compile pacman on a Debian system. I get the following error: /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal

  • CSS 11501 - PXE

    Hi.. I'm looking for a way to load balance a PXE server. Is this possible in a standard software - or do I need the extended software ? Anyone got a config example ? Best regards Tue N

  • HP MediaSmart Server EX490 - Unable to find server/install Connector

    Hi, Would really appreciate any help on this issue since I am at my wit's end.  I have a EX490 with 2 2TB drives on it.  Been so long ago but pretty sure one is a backup of the other. I began to have trouble logging in to the Windows Home Server Cons

  • Need help on Apache SOAP

    Hello all! Im trying to build a Light soap client, in short i will not use the soap.jar package. Just the plain old URLConnection. My question is this... How will i be able to get the response of http://localhost:8080/soap/servlet/rpcrouter if that u