How to find, highlight and save.

I tried to find the answer, but couldn't...
I need to process several PDF files to:
     - Open the file
     - Search for a given string in the file
     - Highligt the line containing the text (the kind of highlighting is not very important: color, rectangle, ...)
     - Save the modified PDF
I have Adobe Acrobat and want to develop a program (C, C++, C#, ...) to do this work. I think it can be done with the SDK, but I'm a bit lost in the documentation and the several options.
Could you help me, please ??

I tried something simple (opening the file and saving with another
name).
After doing that, I tried to find a word in the file, etc. I had some problems in C# (I don't like to use "InvokeMethod, etc.), so I decided to use VB.NET (VisualStudio 2008).
Just now, I know how to use the API for the basic things (open the file, save with another name, find a word, get the number of pages, etc).
Because of your idea of using some JavaScript, I tried that for adding an annotation. I had to read several files in the documentation to get the information, but I managed to add an annotation (type "Square": a red rectangle somewhere in the page). It's a bit difficult, but... I did it.
When you use the JavaScript object, the things get complicated, because you can't get information about some properties (the properties for an annotation.
I have two problems:
- The position in the page: I managed to find the rectangle for an annotation I put interactively, and used that to place my new annotation. But I really need to place the rectangle using the coordinates from a text I find in the PDF. What's the better way to find the coordinates for a text ??
- I found an example that compares a text with every word in the document. When it finds a match, it gets the page number and the word number. Maybe I could use that with other methods, to find the rectangle I need, but............I want to find a match for a string, not only a word. I mean: I need to match "this is the string". Maybe there is a way to do that ??
Do you think I'm going in the right direction or I need to use another approach, another library, ....  ??
Thank you again

Similar Messages

  • How to find out the save as setting information in illustrator cs3?

    How to find out the save as setting information in illustrator cs3 through programmatically. I saved the file using the setting like Overprint, EmbedAllFonts, IncludeDocumentThumbnails throgh scripting. But i don't know how to find out the save as setting information(Overprint, EmbedAllFonts, IncludeDocumentThumbnails) whether the checkbox true or not through scripting. Kindly advice me.

    Thanks for your response. Some time the operator will set the wrong "save as setting" in the eps file . So i need to check wheather the operator set the correct save as setting or not. If the operator set the wrong save as setting,  i need to inform while running the script. So please advice me how to find out the save as setting information of the active document file, and then inform to the operator if any improper "save as setting" occured.

  • Something was hidden in a download and now these double green underlined hyperlinks show up everywhere, and pop ups too whenever I click on ANYTHING. I can't figure out how to find it and get rid of it.

    Something was hidden in a download and now these double green underlined hyperlinks show up everywhere, and pop ups too whenever I click on ANYTHING. I can't figure out how to find it and get rid of it.

    You installed the "DownLite" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "VSearch" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    This trojan is distributed on illegal websites that traffic in pirated movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the DownLite developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised the value of Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • How to find classtype and class for a material.

    Hi,
    How to find classtype and class for a material.
    which table contains this data.
    Thanks
    Kiran

    Hi Kiran,
    Check below sample code. Use this BAPI which will give all info about the class for the material.
      DATA:      l_objectkey_imp    TYPE bapi1003_key-object
                                         VALUE IS INITIAL.
      CONSTANTS: lc_objecttable_imp TYPE bapi1003_key-objecttable
                                         VALUE 'MARA',
                 lc_classtype_imp   TYPE bapi1003_key-classtype
                                         VALUE '001',
                 lc_freight_class   TYPE bapi1003_alloc_list-classnum
                                         VALUE 'FREIGHT_CLASS',
                 lc_e               TYPE bapiret2-type VALUE 'E',
                 lc_p(1)            TYPE c             VALUE 'P',
                 lc_m(1)            TYPE c             VALUE 'M'.
      SORT i_deliverydata BY vbeln posnr matnr.
      CLEAR wa_deliverydata.
      LOOP AT i_deliverydata INTO wa_deliverydata.
        REFRESH: i_alloclist[],
                 i_return[].
        CLEAR:   l_objectkey_imp.
        l_objectkey_imp = wa_deliverydata-matnr.
    *Get classes and characteristics
        CALL FUNCTION 'BAPI_OBJCL_GETCLASSES'
          EXPORTING
            objectkey_imp         = l_objectkey_imp
            objecttable_imp       = lc_objecttable_imp
            classtype_imp         = lc_classtype_imp
    *   READ_VALUATIONS       =
            keydate               = sy-datum
            language              = sy-langu
          TABLES
            alloclist             = i_alloclist
    *   ALLOCVALUESCHAR       =
    *   ALLOCVALUESCURR       =
    *   ALLOCVALUESNUM        =
            return                = i_return
    Thanks,
    Vinod.

  • HT2509 Hello I wonder if anyone knows how to find, download and install a suitable IPA (phonetics) font for the Mac Air? I need to be able to use a pop up window of fonts.

    Hello I wonder if anyone knows how to find, download and install a suitable IPA (phonetics) font for the MacBook  Air? I need to be able to use a pop up window of fonts.

    Unless you've done anything to change it, Google keeps every email that ever passes through their server in your All Mail folder/mailbox/label. Even if you delete stuff, they hold onto it, there. You have to go out of your way to actually delete anything permanently.

  • How do I edit and save a word document that has been e-mailed to my ipad

    How do I edit and save a word document that has been e-mailed to my ipad and then re-send

    Use the paid version (install and activate) of Microsoft Word.
    https://itunes.apple.com/sg/app/microsoft-word-for-ipad/id586447913?mt=8

  • HT1848 I rented four movies on my mac and then transfered them to my iPad, i then did an update to my iPad, now the rentals are not on my ipad nor my mac. I did not watch them and I was charged for them. How do find them and transfer back on my iPad

    I rented four movies on my mac and then transfered them to my iPad, i then did an update to my iPad, now the rentals are not on my ipad nor my mac. I did not watch them and I was charged for them. How do find them and transfer back on my iPad

    If you moved them to your iPad then they will have been removed from your Mac.  If they are no longer in the iPad's Videos app following the update then you will need to try contacting iTunes support and see if they will let you re-download them : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • How to find list and cost price in MM module

    Hi
    Can any one help me in how to find List and cost price in MM module for pricing.
    thank you.
    David

    hi Saquib Khan
    Many thanks Saquib Khan for ur reply. Actually iam trying to create a report which displays material number, material description, plant, product hierarchy, cost and list price, based on the selection criteria of a range of materials, plant and also product hierarchy.
    If u want to share any information.It would be much better for me.Like iam learning SAP.
    thanks.

  • How can i edit and save a spreadsheet or excel sheet on my MACbook pro

    how can i edit and save and rename excel or spreedsheet on my macbook pro

    Just download LibreOffice and click on the Spreadsheet icon in the splash screen:
    ...and it will open almost any Excel document...
    (This is an old football roster created in Excel).
    Good luck,
    Clinton

  • How can I edit and save parts of songs (like a chorus).

    How can I edit and save parts of songs (like a chorus).

    The iTunes-only way is:  figure out where you want your excerpt to begin and end.  Right-click the track, Get Info, Options tab, set the Start/Stop times accordingly, and OK out.  Right-click again, and choose Create XXX version (where XXX is the format indicated in your Import settings).  Right-click one more time, and unset the Start/Stop times.
    This procedure will leave the full track in place, and will create a new file and library entry with just your excerpt.

  • HOW TO FIND WF_ITEM_TYPE AND WF_ITEM_KEY FOR PO

    제품 : MFG_PO
    작성날짜 : 2003-05-14
    HOW TO FIND WF_ITEM_TYPE AND WF_ITEM_KEY FOR PO
    ===============================================
    PURPOSE
    This solution is for Oracle Purchasing 11 and higher
    Explanation
    1. Start a SQL*Plus session using the APPS schema.
    2. Run the following script and enter the Purchase Order number that is stuck
    in process when prompted for the PO_NUMBER:
         SELECT WF_ITEM_TYPE, SUBSTR(WF_ITEM_KEY,1,25) "WF_ITEM_KEY"
         FROM PO_HEADERS_ALL
         WHERE AUTHORIZATION_STATUS='IN PROCESS'
         AND SEGMENT1='&PO_NUMBER';
    3. If more than one row is returned, then run the following script and only
    refer to the row that contains the OPERATING_UNIT_NAME that equals the
    operating unit name tied to the responsibility used when the Purchase Order was
    discovered as being stuck in process.
         SELECT SUBSTR(WF_ITEM_TYPE,1,12) "WF_ITEM_TYPE",
         SUBSTR(WF_ITEM_KEY,1,15) "WF_ITEM_KEY",
         SUBSTR(NAME,1,35) "OPERATING_UNIT_NAME"
         FROM PO_HEADERS_ALL PA, HR_ORGANIZATION_UNITS OU
         WHERE PA.ORG_ID=OU.ORGANIZATION_ID
         AND AUTHORIZATION_STATUS='IN PROCESS'
         AND SEGMENT1='&PO_NUMBER';
    Example
    Reference Documents
    -------------------

    Hi Kishore,
    Welcome to SCN!
    to find the sales order from Purchase order , go to SE16, Enter the table name as VBAK and press Enter.
    In BSTNK field of VBAK, Enter the Purchase order number. System will return you corresponding sales order.
    Hope this will help you.
    Regards,
    Nikhil

  • How to find files and subdirectories in a directory

    can anyone tell me how to find files and subdirectories in a directory .

    Here's a code snippet,
    http://javaalmanac.com/egs/java.io/TraverseTree.html

  • HT4059 How do you highlight and make notes on a PDF book?  I can do so on my ePub books, but not PDF. Is there a trick?

    How do you highlight and make notes on a PDF book?  I can do so on my ePub books, but not PDF. Is there a trick?  I would like to avoid a second app for this.

    I wasn't aware you can edit PDF's in iBooks.

  • So someone took my ipod 4g and who ever took it turned it off and i dont know how to find it and i really want it back, what should i do?

    so someone took my ipod 4g and who ever took it turned it off and i dont know how to find it and i really want it back, what should i do?

    lost/stolen                                      
    No app on the iPod is required.                            
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected, on a computer browser go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • How can I edit and save a raw file in jpeq and open it in windows live photo gallery

    how can I edit and save a raw file in ps elements 10 and open it in windows live photo gallery?

    Change to 8 bit mode before clicking the Open Image button, then jpeg will become available as a choice.
    Click to view image

Maybe you are looking for