Search for a text in a file PDF - c# or Javascript language.

I want to search and highlight text in a pdf file. I have a few extra needs also. Please find the below given prescription.

(1) find text in a pdf file.

(2) highlight all the match. Highlighting color should be decided by the user or programming level.

Search 3) should also be of Page layout (Say-Page1-Page3) or on a single page (Page 5). Or throughout the document.

The code must be written in c# or javascript only.

Thank you for your response. Before you continue, I will quote Adobe products in the cases where this is not familiar.

1 adobe Reader, now called Adobe Acrobat Reader. Free, limited.

2. version adobe Acrobat Standard, Adobe Acrobat Standard DC current. Commercial. PDF creation/editing of base.

3. version adobe Acrobat Pro, Adobe Acrobat Pro DC current. Commercial. Powerful tools for PDF.

These products look similar, but have more functions. 2 and 3 are called together Adobe Acrobat. 1 is not called Adobe Acrobat.

The Adobe Reader programming interface is very limited, by its design. So your direct answer is, no, it is not possible.

If you're ready to buy Adobe Acrobat for each you have a much more powerful programming interface, and what you describe may be possible, but not easy. In this case, you must first download the Acrobat SDK, which limited as much documentation and some samples; Further applications are better sent the kit SDK Acrobat, Acrobat SDK Forum

Tags: Acrobat

Similar Questions

  • Please, give me an advise how to search for a number in a file xml (as3.0)

    Hello! Sorry for the troubling.

    Please, give me an advice how to search for a number in a file xml (as3.0)

    Thank you!

    My answer was based on your question to find numbers anywhere in the data to an xml file.  If you know that the data is digital data and the names of the nodes that contains this data, you do not have to check the characters and can only check numerical data using string values...

    function searchXMLFile(Event:MouseEvent):void
    {
    searchDisplay.text = "";
    var pageList:XMLList = xmlFileToSearch.receipt.number;
    searchDisplay.text = "false";
       
    for (var i: int = 0; i< pagelist.length();="">
    {

    If (pageList [i] == searchInput.text) {}
    searchDisplay.text = "true";
    }

    }
    }

    Even if you are looking for individual digital characters in the previous code that you would have always done by a false exit due having the line 'false' always cancel the real line...

    If (t.toString () .indexOf (m_sSearchTerm)! = - 1).

    {

    searchDisplay.text = "true";

    }

    searchDisplay.text = "false";  This will always overwrite the textfield

  • Search for the text value data store

    Hello, I have a PDO of data to store, and I would like to search for a text value in a quantity of measure.  In each of my test series, there is a quantity of measure with the name TCNAME and stores the cell name of test in the string format.  I would like to get all the TCNAMEs that contain "TC4" for example.  Currently, I have to load TCNAME in the portal and display it in an array of string.

    Any ideas how I can do this?

    I assume you are using a PUMA testbed that stores this kind of goods on a unique value chain chains.

    There is no direct search method, so I guess that a script is the only solution we can offer.

    Datafinder you can search for the minimum and maximum of a channel. That would be too much work in the store of ASAM.

    "PDO / cpp"
    protected tcnameMQs: set tcnameMQs = store. GetElementList ("MeasurementQuantity", "name = TCNAME", true)
    protected tcnameMQ: for each tcnameMQ in tcnameMQs
    MsgBox tcnameMq.References ("local_columns"). Elements (1). Properties ("values"). Value
    Next

    ' AOP5 / Corba
    protected tcnameLCs: set tcnameLCs = store. GetElementList ("LocalColumn", "measurement_quantity.name = TCNAME", true)
    protected tcnameLC: for each tcnameLC in tcnameLCs
    MsgBox tcnameLC.Properties ("values"). Value
    Next

    I have added the example which should be the shortest path from my point of view. In AOP5, you can search LocalColumn and spend BA which is less overhead.

    It is perhaps a good idea to post-processing of the data base and crush the decription "Test name" by

    "The test cell name == NAME. You can search not post-processed by Searchin' for.

    protected tcnameMQs: set tcnameMQs = store. GetElementList ("MeasurementQuantity", "description = name of the test cell", true)
    protected tcnameMQ: for each tcnameMQ in tcnameMQs
    tcnameMQ.Properties ("description"). Value = "name of the test cell is" & tcnameMq.References ("local_columns"). Elements (1). Properties ("values"). Value
    Next
    Store.Save

    Thereafter, you would be able to search for it.

    Greetings

    Andreas

  • How a search for certain content through many files?

    Windows 7 claims to be able to search for certain substances, but it does not work, or is not properly documented. My filenames have the extension "ls2" and are open with Notepad. How can I search for a string in the content of my ls2 files?

    Hello

    Maybe this will help: (mainly those of type "BOLD" )

    Tips for finding files
    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-finding-files

    How to use advanced search in Vista Options
    http://www.Vistax64.com/tutorials/75451-advanced-search.html

    How to restore the page button on the Start Menu after installing Vista SP1
    http://www.Vistax64.com/tutorials/145787-Search-start-menu-button-restore-after-SP1.html

    How to restore the context Menu item search after installing Vista SP1
    http://www.Vistax64.com/tutorials/134065-search-context-menu-item-restore-after-Vista-SP1.html

    How to create a shortcut on the desktop search in Vista
    http://www.Vistax64.com/tutorials/126499-search-desktop-shortcut.html

    ----------------------------------------------------------

    Win Key F opens advanced search

    Searching in Windows Vista, part 1
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-1-secrets-of-the-search-box

    Part 2
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-2-Start-menu-and-control-panel-search-tips

    Part 3
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-3-using-advanced-search-for-those-hard-to-find-files

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • How can I search for a word in several files in a particular folder?

    Original title: search for a specific word

    Hello

    I'm working on Windows 8. How can I search for a word in several files in a particular folder?

    TKS

    Provide the location is indexed, you can search for a specific phrase or Word file Explorer by typing content: follow-up of your phrase surrounded by quotation marks. This will produce a list of files, the filtering criterion.

  • How to search for words and phrases in multiple pdf documents

    Dear Sirs.

    I need to search for words AND phrases in a huge amount of PDF files (over 5000). The problem I found by using the "advanced search" is that I am able to search for single words sentences individual GOLD, but I need to combine a lot of words and multiple expressions in the same search. For example, if I need to look for instances of the word 'Florida' or 'Texas' or 'United States', I can't search for each PDF file that contains the word 'Florida' or 'Texas' or the phrase 'United States', since if I put 'word' in the search options, I will receive all the files that contain the word "Florida" or 'Texas' but also 'solidarity' or 'States' and simple words. I tried placing quotes in the words I need to research such as phrases, but it did not work. I would like to know if there is a way I can search the way I need.

    Thanks in advance.

    Alejandro Araujo.//

    Hello Alejandro,

    Please see this KB doc. helps Acrobat | The search for PDF files, it will be a great help.

    Kind regards

    Nicos

  • Search for words in an excel file

    Hello

    I have a question, can I do a search for the words I want to write in labview, in an excel file?

    what I want is to search for certain words from an excel file and then replace it with another that I will write from labview.

    have you undeerstand?

    Thank you!!


  • Default properties for the text field of the PDF forms

    How can I set the default properties for the text field?  The creator of forms set of font sizes that are too large.

    Right-click on the field > use current properties as new default.

    It will keep the new settings until the next time that you do this. It is not specific to the document. Do it separately for each field type (text, button, etc.)

    On an existing form, you can select multiple fields. A pro tip, is that you don't have to close the properties to move from the field to the field to the field. Dungeon opens and work faster.

  • Search for words in the resource files?

    Hi all

    I have about 5000 text files in my resources.

    What is the best/best way to look for a specific job in these files?

    The files are about 2K each.

    Thank you.

    In fact I still misread the question, then please ignore my previous posts...

    I agree with your solution, and since you efficiently load these files from the memory, the charging process should be fast enough, only the research process which will take time.  And this is true for any solution.

    Another option is to put the files in a SQL database, and then use SQL facilities to perform the research.  I tested the performance of this in comparison with a storage research and it's much slower, but much easier to change.  Then just a thought.

  • Find/replace, searching for specific text to replace it with the paragraph tag

    I tried to replace a string of text that I have at the beginning of a paragraph indicating a certain style of paragraph with this style of ID while eliminating the text string. For example, I put @IN1 at the beginning of a paragraph I want formatted with the paragraph of my ID IN1 style. However, when I have 'Search' @IN1 with no. find format and 'to' do not change (i.e. empty) with the paragraph style selected 1 selected under format change, it applies the paragraph style, but does not delete the text string @IN1. When you do a search/replace without the portion of paragraph desired syle, he removes the @IN1 correctly. It is a bug, or is there something I have to put in the change of area indicate no text? Thank you

    Using the GREP tab, find ^ (@IN1) (.) and replace with $2 and set the paragraph style in the change of format.

    The ^ beginning of paragraph says and the $2 is the second subexpression matching.

  • Search for items in. INI file

    Good afternoon

    First of all, I work with INI files and Excel files. In fact, all my items in my several INI files are also written in a single Excel file like this:

    First INI file

    Tag name |     Value |     Name of the section

    Tag name |     Value |     Name of the section

    Tag name |     Value |     Name of the section

    Second INI file

    Tag name |     Value |     Name of the section

    Tag name |     Value |     Name of the section

    Tag name |     Value |     Name of the section

    The purpose of my request is to refresh the values of INI files using an Excel file.

    For the moment, I have also written all of my tags names and section names in my program.c and I compare and part of my Excel file with all the tables containing the tag name and the name of sections in program.c

    I was wondering if, CVI 8.5.1, there is any function which can tell me the Sectionname + Tagname existing in the file I want to. If there is, I wouldn't have to store all my data in many groups.

    In fact, I would compare my datas directly with my INI file and not with arrays.

    I hope that I was clear enough in what I was looking for.

    Thank you in advance.

    Vincent Keresztes

    I finally find my solution.

    I used Ini_ItemExists, which gives me the information I wanted.

    Thank you for helping me!

  • Search for formatting text and convert them to the outline

    Hello! I need a script that finds the text formatting and convert them to the outline. If one who can do this script please provide.

    Thank you

    I need the script to only specific formatting for once. So I don't need any fancy or dialog boxes option. I also did the character for the formatting style.

    Try this.

    var doc = app.activeDocument;
    app.findTextPreferences = null;
    app.findTextPreferences.appliedCharacterStyle = "charstylename";
    var found = doc.findText();
    for(var i =0;i
    

    Kind regards

    Cognet

  • Search for uppercase text field

    Hi all

    Does anyone have ideas how to select and concatenate all uppercase in a text field. Let's say that the value in a text column is:

    M/E Air Cooler chemical cleaning of pump

    I would M/EACCCP or MEACCP.

    Is it still possible?

    I would M/EACCCP or MEACCP.

    SQL> select regexp_replace('M/E Air Cooler Chemical Cleaning Pump','[[:lower:]]| ') s from dual
    /
    S
    ------------
    M/EACCCP
    1 row selected.
    
  • Windows 7, the search for directory and files

    I want to search a directory with several subfolders and thousands of pdf files. The goal is to select a specified list of file names so that each of them appears in the search results.

    Rather than search for a text string, so I want to search in a list of names of known files. I'm looking for a separator I put between each file name on my list (for example, a pipe, comma, or other special character) so that I can paste the complete list of file names in the search box and get my results.

    Each file name put on my list be known to exist, that is to say, would generate a find.

    Sorry if I did not understand, but I think OR is that what you want?

    as in "name: Gold: Gold: etc.

    So you want to files with a name of piggy and snake "name: piggy GOLD name: Snake.

    I hope it's this that you wanted, otherwise, after return.

  • Search for strings of text using javascript

    There are some tutorials on this subject, but none seems to help me find specific text.


    Imagine the text above is part of a paragraph in a pdf document. I want to find the wordssubject ', 'appear ' & 'specific '.

    The idea then is to use a Automator workflow that will copy the file into a hot folder, open in acrobat, find the text, highlight it with another javascript I have and then move it to a folder 'full'.

    I had much rather create an action to find the text and highlight it, but you can't import Acrobat action in Automator!

    Any advice would be appreciated, because I'm stuck!

    Cheers in advance

    To search for specific words in a file, you need to loop through all the pages of

    the file, and then on the words on each page, then compare the words to your

    list of "target".

    However, you cannot use Acrobat as part of a workflow like you

    Describes.

Maybe you are looking for

  • Are in-app purchases included in the feature request to buy?

    Is is possible for my kids to use the feature to ask buy to purchase in-app purchases such as packs of gems in the shock of the clans? Thank you

  • scrollling with Tablet

    Since I am using version FF 13.0, scrolling in web page with my function (wacom) pen tablet dousn can't more. The functionality stops working after one or 2 wipes, I have to click on the Tablet again and when it works I repeat this step until the end

  • battery dose not last

    battery dose not last

  • H5Q 16AA # ABA: Hard Drive optimized failed DST Check

    I'm trying to help my mother with her computer.I did a scan on his hard drives and the optimized hard drvie dst check failed. Failure ID is OGFB6C-000836-9XJ2XA-615903. Can someone tell me where I go from here? Do I have to get a new hard drive, ect?

  • Bike is hammered on twitter to get answers

    So today, I thought that I would check the bike mobility twitter page. Looks like they are themselves hammered by Bionic owners with regard to when we will receive ICS. Response to the questioning on q3 and refers people to the old ICS update page. L