Results 1 to 11 of 11
  1. #1
    Lounger
    Join Date
    Jan 2009
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    converting text boxes to regular text (2003)

    Hi all,

    I am trying to clean up a company policy manual. The original had been converted to PDF. I used a conversion program to convert that PDF into Word. I am using Word 2003. The bulk of the text is in text boxes. This makes my job almost impossible to simply edit the text. Is there some way to remove the text boxes without losing the text in them? I found a link on the Internet that sad to convert them to frames. This deletes the text box and the text inside.

    I have tried to copy and paste from the PDF into Word but I lose the formatting when I do that.

    Any suggestions?

    Thanks

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: converting text boxes to regular text (2003)

    Converting a TextBox to a frame should not delete the content, but it can make it difficult to find. Unfortunately, as Word has moved away from frames to Text Boxes, the tools for working with frames have become harder to access.

    If re-styling the plain text is too much work, perhaps you can try some other conversion tools? I suspect that many have free trials.

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: converting text boxes to regular text (2003)

    I don't know whether you will find this helpful, but this macro will drop the text of the TextBox back into the document at its anchor point. When you create a document yourself, the anchor point usually is a logical point, but in the conversion, I have no idea. But it's a starting point. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

    <code>Sub DumpTextBox()
    With Selection
    ' Check position of the insertion point
    If .ShapeRange.Count = 0 Then
    MsgBox "Please click in a TextBox and try again"
    Exit Sub
    End If
    ' Create object reference to first shape's text frame
    Dim tf As Word.TextFrame, rngStart As Long, rngLength As Long
    Set tf = .ShapeRange(1).TextFrame
    ' Capture anchor location
    rngStart = .ShapeRange(1).Anchor.Start
    ' Measure expected size after paste
    rngLength = tf.TextRange.Characters.Count
    ' Copy contents to clipboard, remove shape, then paste
    tf.TextRange.Copy
    .ShapeRange(1).Delete
    End With
    With ActiveDocument
    If Not tf Is Nothing Then Set tf = Nothing
    .Range(rngStart - 1, rngStart - 1).Paste
    ' Bookmark the pasted content for quick reference
    .Bookmarks.Add "TextBoxDump", .Range(rngStart - 1, rngStart + rngLength - 1)
    .Bookmarks("TextBoxDump").Select
    End With
    End Sub</code>

  4. #4
    WS Lounge VIP
    Join Date
    Mar 2006
    Location
    Maryland, USA
    Posts
    690
    Thanks
    17
    Thanked 66 Times in 56 Posts

    Re: converting text boxes to regular text (2003)

    Convert the text box to a frame. Then right click on an edge to open the format frame dialog (or some such name I'm can't check the dialog box name just now). From there you can _remove_ the frame, leaving the text. There may be a way to do this through VBA.

    PamC
    Pam Caswell

  5. #5
    Lounger
    Join Date
    Jan 2009
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: converting text boxes to regular text (2003)

    When I try to convert the text box to a frame. The box and the text inside disappear.

  6. #6
    Lounger
    Join Date
    Jan 2009
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: converting text boxes to regular text (2003)

    I have probably done something wrong. Never used VBA in my life (that I know of). When I try to run this macro it stops on .ShapeRange(1).Delete

  7. #7
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: converting text boxes to regular text (2003)

    Do you get a specific error message?

    Try copying from the attached, in case there was a glitch copying from the Lounge. (It is not recommended to copy from an email notification.)
    Attached Files Attached Files

  8. #8
    Lounger
    Join Date
    Jan 2009
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='jscher2000' post='757455' date='06-Feb-2009 06:11']Do you get a specific error message?

    Try copying from the attached, in case there was a glitch copying from the Lounge. (It is not recommended to copy from an email notification.)[/quote]
    Here it is a month later and I am still struggling with this issue of text boxes. I was wondering if there is another way around my problem.

    To save some time I will recap my problem. I used converting software to convert a pdf file to a Word document. The conversion put the text into text boxes. I need to do some editing on this document (hence the conversion in the first place). Some of the information in the text boxes I want to delete completely. Most of the text will edit fine but, when I try to delete some text (always the last character) it won't delete!

    So, now after a month I am ready to try something else. All the previous suggestions don't seem to work.

    Is there some way other than a labor intensive cut and paste session to copy the text from the text boxes into a new document that will allow me to do all of my editing? I have tried crtl+A and cut and the formatting goes into the new document. I have tried Paste Special and choosing plain text. Only those parts of the document that are not in text boxes paste into a new document.

    TIA

  9. #9
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts
    [quote name='Gasman' post='763638' date='05-Mar-2009 08:09']Is there some way other than a labor intensive cut and paste session to copy the text from the text boxes into a new document that will allow me to do all of my editing?[/quote]
    If formatting is not essential, try using the text extraction filter. First, make a copy of the file. Next, in Word, launch the File > Open dialog. Change the drop-down to the document type most similar to "Recover Text from Any File (*.*)" and open the copy. Remember to change that document type back the next time you open a file or you will give yourself a real shock.

  10. #10
    Lounger
    Join Date
    Mar 2007
    Location
    Houston, Texas, USA
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='Gasman' post='763638' date='05-Mar-2009 11:09']Here it is a month later and I am still struggling with this issue of text boxes. I was wondering if there is another way around my problem.

    To save some time I will recap my problem. I used converting software to convert a pdf file to a Word document. The conversion put the text into text boxes. I need to do some editing on this document (hence the conversion in the first place). Some of the information in the text boxes I want to delete completely. Most of the text will edit fine but, when I try to delete some text (always the last character) it won't delete!

    So, now after a month I am ready to try something else. All the previous suggestions don't seem to work.

    Is there some way other than a labor intensive cut and paste session to copy the text from the text boxes into a new document that will allow me to do all of my editing? I have tried crtl+A and cut and the formatting goes into the new document. I have tried Paste Special and choosing plain text. Only those parts of the document that are not in text boxes paste into a new document.

    TIA[/quote]

    In my office we get this all the time when using the 'Open PDF' option in our Scansoft product. We get around it by selecting all and pasting unformatted into a new document.

    Gets rid of all the extraneous stuff.

  11. #11
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts
    I found this interesting blog post today: PDF-to-Word Conversion: Why Itís So Hard to Do - The PDF Blog. The vendor has a free online converter in beta; later it will be folded into a commercial product. You could try the online converter and see whether they have really solved the problem. However, if the document is highly confidential, you might want to wait...

    http://www.pdftoword.com/

Posting Permissions

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