How can you change individual words in a PDF using javascript?

Hi,
I am trying to do some simple text replacement in a PDF file using Acrobat. Specifically, I want to do some simple transliteration of words or partial transliteration. For instance, I would like to change a word like "red" to "ρed". This is to help me get used to the Greek alphabet step by step.
Anyway, I downloaded Acrobat and there is no feature to do a single letter search and replace -- only word replacement. I have a Computer Science degree and decided to investigate the javascript capabilities to see if I can make those a simple letter replacement script. However, I have gotten to the point where I can cycle through every word in the PDF (using functions like getPageNthWord), and I can make a replacement on the string returned using something like: val.replace(/r/, "ρ"). However, I don't know how to replace the word in the PDF file....such as with a hypothetical function setPageNthWord (which does not exit). I have found the online documentation very thin on this, and I am scratching my head. Perhaps, it is something to do with the PDF format that I do not understand. So, is there a way to simply change text of a PDF file, like I am asking? All I am looking for is simple script to change a letter to another across a PDF.
thanks if you can help
Justin

JS can't edit the text in a PDF file directly. There are workarounds, like
using a redaction with overlay text or simply placing a new field or
annotation on top of the old text with the new one, but they are all far
from perfect and won't cause a "reflow" of the document, so if the two
texts are not of the same length the result will look odd. Also there's the
issue of which font to use (font family, color, size, etc.), which JS can't
know so you'll have to tell it.

Similar Messages

  • How can I change the size of a pdf source file, or, convert it to Word?

    How can I change the size of a pdf source file, or, convert it to Word?

    A lot depends on the form of the PDF. Is it graphics, a scan of a text file, pure text, or other? What version of Acrobat are you working with.
    You can do a save as to get a WORD file, but do not expect great results. The ability to get a decent WORD file depends on what the form of PDF you are working from. If it was created from WORD with tags and all, you might get good results. If not, you might get a lot of messed up results.
    Explain what you are starting with and your ultimate goal. Also check the audit of the file (should be under PDF Optimize) to see where the file information is concentrated (text, fonts, graphics, other).

  • How can you change your security question for I tunes?

    How can you change your security question for I tunes?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then the steps half-way down this page give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

  • How Can You Change the Look and Feel of Charts in OBIEE 11g

    How Can You Change the Look and Feel of Charts in OBIEE 11g?
    Edited by: user11973122 on Jul 18, 2012 12:13 AM

    Check these files
    OFM_HOME\Oracle_BI1\bifoundation\web\msgdb\s_blafp\viewui\chart\dvt-graph-skin.xml
    OFM_HOME\Oracle_BI1\bifoundation\web\msgdb\views\dvtchart\obips.dvtchart.xml
    OFM_HOME\Oracle_BI1\bifoundation\web\display\chartfontmapping.xml
    Pls mark correct or helpful if helps

  • HT1918 How can you change your security questions?

    How can you change your security questions?

    1. See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities.
    2. Here are two different but direct methods:
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contacting Apple for support
            and service.
    3. For other queries about Apple ID see Frequently asked questions about Apple ID.
    4. Rescue email address and how to reset Apple ID security questions

  • How can you change your line access selection?  I have found where you can change your plan selection, but can you change the line access fee or is that a set amount?

    How can you change your line access selection?  I have found where you can change your plan selection, but can you change the line access fee or is that a set amount?

        DIVAB71,
    Great question. The line access fees for the account are a set amount and can not be changed unless you are going from a basic to a smartphone or vice versa. If you are wondering about adding the month to month discount if you are out of contract Ann154 has provided great information on how to access and add the feature.
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • How can you change your security questions if you for got them

    how can you change your security questions if you for got them

    Welcome to the Apple Community.
    Start here, and reset your security questions, you will receive an email to your rescue address, use the link in the email and reset your security questions.
    If that doesn't help or you don't have a rescue address, you might try contacting Apple through iTunes Store Support

  • How can you change your security questions!! i got a new iphone 5 and i forgot them!!

    How can you change your security questions?! I got the iphone 5 and i forgot them and it wont let me buy songs!!!!

    Click here and request assistance.
    (72909)

  • How can you change the bubble color in the message app on the iphone 5

    How can you change the bubble color in the message app on the iphone 5?

    If you are having trouble reading your texts you can increase the font size until it becomes clear. Put in a feature request for the colour change though, it won't happen unless people ask for it.

  • How can you change the font size in the application and system headers?

    How can you change the font size in the application and system headers?  I searched the system and finder prefs to no avail.  Changing the screen density is not a good option.
    Thanks

    I downloaded Tinkertool.  Found the font section and increased the size of most selections.  The only thing that changed that I can see is the window label.  The apple line, bookmarks line, the tool bar in safari are all the same---font size of about 4.  Found the finder "show view options" but that didn't seem to change anything either.  I'll keep working.  Restarted all apps after changes as well.

  • How can you change data on a SQL 2012 application database that uses availability groups from BizTalk server?

    If you use the WCF-SQL adapter it is recommend that you set UseAmbientTransaction to true if you are changing data. I think this requires MSDTC to be enabled on the SQL server that you are changing the data on. (http://msdn.microsoft.com/en-us/library/dd787981.aspx)
    I think that Availability groups does not support MSDTC. (http://msdn.microsoft.com/en-us/library/ms366279.aspx).
    How can you change data on a SQL 2012 application database that uses availability groups from BizTalk server?

    Hi,
    Yes, Availability groups doesn't support MSDTC. Please refer to the similar discusison which maybe helpfull:
    http://dba.stackexchange.com/questions/47108/alwayson-ag-dtc-with-failover
    http://stackoverflow.com/questions/17179221/msdtc-in-always-on-availability-groups

  • How can you change the banner of the FTP-server on the Linksys WRT610N ?

    Dear readers,
    My question is this : How can you change the banner of the FTP-server on the Linksys WRT610N ?
    At present it says : "Welcome to WRT610 Router's FTP service" which gives away the type of the device.
    Which is a clue I would rather hide. Besides that I would like to change it to something more personal.
    But how do you do that ?
    The UG is silent about this.
    Regards
    John

    Try this to change FTP banner?
    * Login as admin
    * Open Internet Information Services (IIS) Manager
    * Expand FTP sites (from tree view)
    * Right-click on the particular FTP site, select Properties
    * Click on the Messages tab
    * Setup new message
    * Save the changes

  • Can you change the wording of a text that someone sent you ?

    my sister sent someone a text , they in turn showed me on their phone with her name/number at the top of the feed  to prove she said something to this person about this certain subject . She is denying everything in this text and said he altered it to show me what he wanted me to see . Can you change the wording on a text sent from someone in their feed with their name/number at the top of the feed? Does this make sense ? What I do know is , you can copy and paste and change the wording when sending that text to someone else , but he showed me his own phone with these incriminating texts.

    No you can't

  • How can you change a user defined swatch

    How can you change a user defined swatch

    Double click on the swatch in the swatches palette.
    In most case you can do that , unless for example you have a placed image that has that color in a spot channel.

  • How can you change the language in Photoshop [Danish to English] ?

    How can you change the language in Photoshop [Danish to English]?

    Cloud language change http://helpx.adobe.com/creative-cloud/kb/change-installed-language.html

Maybe you are looking for

  • How to handle this Rework Scenario.

    Hello friends, Following is the rework scenario that is in Pharma. My client produces finish product quantity extra than required. Suppose i have order of 1,00,000 tablets. Production order is created and production is completed. Suppose for this ord

  • Desktop keeps freezing

    My laptop's desktop keeps freezing. All my icons become inactive and the only way I can access them is via the folders on my toolbar. Any advice? Also, my Internet explorer CONTINUALLY freezes up or takes FOREVER to load any data. I have been using G

  • CD Drive Doesn't Work, Please Help

    Recently my Macbook was running really slowly so I restored my Macbook to factory settings. Now my CD Drive doesn't work. I can't burn CD's from iTunes or use cd's for anything. Please help!

  • ITunes says my iphone is not synced with the correct account, but the account has never changed

    I recently got my computer reset due to start up issues, which means everything off my computer was wiped. Now im trying to add music to my iphone but it says that its not connected to the synced itunes account, and prompts me to sync and erase my ph

  • Session won't load - ERROR MESSAGE- Please help decipher

    For no apparent reason, when I opened my session I got an Adobe ERROR MESSAGE. Then the session won't load and Audition crashes. Here is the message: (A big Red X appears in the dialog window) Audition has encountered an error. [\Monk\main\common\Pre