Is there an easy way to just modify text content with VB

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default Is there an easy way to just modify text content with VB

    Hello, I just want to change any given text in a PDF document programatically.
    For instance, changing the language of the text within a PDF document to Spanish.
    Is there a straight forward way to do this with VB (or other language), using a function or a call within the SDK ?

    Thank you all!
    Vicente_Vega@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. How to *modify* text in HTML::Element
      Sorry for the repost, I hit Send too soon. I am using HTML::TreeBuilder to futz with some HTML, and I need to modify the text of some of the...
    2. text modify
      Hi, I have some data column based data I want to modify a bit. 0065 663 517 046 0 1485 0065 663 517 046 3 1500 0065 663 517 046 5 1882...
    3. Content from a memo field: converting the rich text into plain text
      Hi folks, I have an Access 2000 db with a memo field. Into the memo field I put text with bold attributes, URL etc etc What I need to to is...
    4. Modify a text file directly
      Hi all, I have to replace some chuncks out of a text file. My actual way to do this is to put the file contents into a scalar variable : open...
    5. Modify Text in a Combo Box A2002
      I'm trying to validate and change (if necessary) what a user types in a combo box, specifically a person's name. The bound combo box presents...
  3. #2

    Default Re: Is there an easy way to just modify text content with VB

    This could be done with a C/C++ plug-in, but not with VB. And it certainly won't be trivial, especially if you expect to be able to convert with proper grammar since the text runs may not necessarily be in the order you see them on screen.
    PDL@adobeforums.com Guest

  4. #3

    Default Re: Is there an easy way to just modify text content with VB

    Thank you so much, PDL.

    Yes I though that.

    But, Do you have any hint of how to do it (like the Function, Property or Call name) ?

    Thanks again!
    Vicente_Vega@adobeforums.com Guest

  5. #4

    Default Re: Is there an easy way to just modify text content with VB

    Sorry for not explaining myself clearly.

    This is an example of an easy text I want to replace
    every time there is a "Date:" I want to replace it with "Fecha:"
    but programatically since there are a lot of documents to change.
    Thank you!
    Vicente_Vega@adobeforums.com Guest

  6. #5

    Default Re: Is there an easy way to just modify text content with VB

    hi,

    As PDL stated you could use as c/c++ plug-in but this would require you to find the word using a PDDocCreateWordFinder function ( there are similar functions so I would investigate to make sure you pick the most appropriate.

    You can the use this to find the word you want to replace. To replace it you would then need to get a note of the location of the word using the PDWord functions. then get the PDEText object(s) (it may be more than one) that contains the word you want to replace and remove it.

    Then add a new PDText object at the location stated above with the new text that you want, you could get most of the formatting information from the original object.

    AS you can see this is not a straight forward change to make.

    HTH

    Malky
    malkyt8@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139