Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 33
  1. #16
    Platinum Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    5,518
    Thanks
    47
    Thanked 9 Times in 8 Posts
    Jerry, I thought both of these did so too, but as yet I haven't been able to get either to do it.

    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  2. #17
    Super Moderator jwitalka's Avatar
    Join Date
    Dec 2009
    Location
    Minnesota
    Posts
    4,450
    Thanks
    62
    Thanked 497 Times in 447 Posts
    Did you click on the text select tool in pdf Exchange befor the copy? After clicking on the text select, you can do a ctrl - a to select the whole document.
    pdfxchange.jpg

    Jerry

  3. #18
    Platinum Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    5,518
    Thanks
    47
    Thanked 9 Times in 8 Posts
    I thought I did Jerry, but then...I'll look again...

    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  4. #19
    WS Lounge VIP
    Join Date
    Mar 2006
    Location
    Maryland, USA
    Posts
    677
    Thanks
    17
    Thanked 57 Times in 50 Posts
    Quote Originally Posted by CWBillow View Post
    So then Pam, I would need a full-blown PDF editor to really do what I need? I'm surprised that there isn't a way to just copy the text. I would get it if it were losing empty lines, but *adding* them? Pooh!

    Chuck
    I just tried Adobe Reader XI, you have to pay to have it convert the file to Word, but copy and paste from it into Word has returns only at line endings, which is what you likely expected. Upgrading the reader is free...still.
    Pam Caswell

  5. #20
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    3,770
    Thanks
    0
    Thanked 162 Times in 150 Posts
    If copying & pasting the text is sufficient, apart from the messed-up formatting, you can easily enough clean it up with a macro. I use the following for that purpose. The only 'rule' you need to pay particular attention to is that the macro assumes lines within a paragraph will be separated by no more than one paragraph break or manual line break whilst paragraphs will be separated by at least two paragraph breaks or or manual line breaks (I use the macro for content pasted from websites & emails as well).
    Code:
    Sub CleanUpPastedText()
    Dim TrkStatus As Boolean      ' Track Changes flag
    ' Turn Off Screen Updating
    Application.ScreenUpdating = False
    ' Store current Track Changes status, then switch off
    With ActiveDocument
      TrkStatus = .TrackRevisions
      .TrackRevisions = False
    End With
    With ActiveDocument.Content.Find
      .ClearFormatting
      .Replacement.ClearFormatting
      .Forward = True
      .Wrap = wdFindContinue
      .Format = False
      .MatchAllWordForms = False
      .MatchSoundsLike = False
      .MatchWildcards = True
      'Replace single paragraph breaks and manual line breaks with a space
      .Text = "([!^13^11])([^13^11])([!^13^11])"
      .Replacement.Text = "\1 \3"
      .Execute Replace:=wdReplaceAll
      'Replace all double spaces with single spaces
      .Text = "[ ]{2,}"
      .Replacement.Text = " "
      .Execute Replace:=wdReplaceAll
      'Delete hypens in hyphenated text formerly split across lines
      .Text = "([a-z])-[ ]{1,}([a-z])"
      .Replacement.Text = "\1\2"
      .Execute Replace:=wdReplaceAll
      'Limit paragraph breaks and manual line breaks to one 'real' paragraph per set.
      .Text = "[^13^11]{1,}"
      .Replacement.Text = "^p"
      .Execute Replace:=wdReplaceAll
    End With
    ' Restore original Track Changes status
    ActiveDocument.TrackRevisions = TrkStatus
    ' Restore Screen Updating
    Application.ScreenUpdating = True
    End Sub
    If you want to be able to run the macro against a selected range only, change 'ActiveDocument.Content' to 'Selection' and change '.Wrap = wdFindContinue' to '.Wrap = wdFindStop'.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  6. #21
    Platinum Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    5,518
    Thanks
    47
    Thanked 9 Times in 8 Posts
    Cool, Paul! Thanks!

    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  7. #22
    Star Lounger
    Join Date
    Dec 2009
    Location
    Ensay, Victoria, Aust
    Posts
    75
    Thanks
    0
    Thanked 1 Time in 1 Post
    I just downloaded your document and converted to PDF no worries using deskUNPDF program, AHACHMENT.docx file was opened in OpenOffice

    Having installed my paid version of Office 2000 Premium i found i was unable to convert Word documents to PDF because the required MS driver wasn't bundled with MS Office until version 2003.
    Having sort support from the deskUNPDF program people i found i needed to download OpenOffice to obtain the driver that runs that function and that system configuration works fine
    Attached Files Attached Files

  8. #23
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    3,770
    Thanks
    0
    Thanked 162 Times in 150 Posts
    Quote Originally Posted by robplum View Post
    Having installed my paid version of Office 2000 Premium i found i was unable to convert Word documents to PDF because the required MS driver wasn't bundled with MS Office until version 2003.
    No Office version up to and including 2010 has included a filter for reading PDFs. Office 2013 (not 2003) is the first Office version to support reading & editing of PDFs.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  9. #24
    Lounger
    Join Date
    Dec 2009
    Location
    Melbourne Victoria Australia
    Posts
    34
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Try Cute PDF free version

    If you open a PDF file in Cute PDF there is the option to view the PDF as text. A simple copy and paste into word is possible. It's clean and simple but there may need to be some editing to get spacing to look OK.
    I tried to attach a sample but am not sure it loaded.
    Cute PDF has a free version as well as a paid. I am using an early evaluation copy.
    Attached Files Attached Files

  10. #25
    New Lounger
    Join Date
    Aug 2010
    Location
    Inland Empire, Southern California, USA
    Posts
    2
    Thanks
    0
    Thanked 2 Times in 2 Posts
    I'm sure most know this quick trick for getting rid of the paragraph marks at the end of each line in the Microsoft Word document -- the document you created when you copy text from a PDF. In case someone doesn't, I'll go through it.

    First, it is helpful to turn on "paragraph marks" in the Word document: In the "Paragraph" section of the Ribbon (Word 2007), click on what looks something like a backward capital letter P -- the paragraph (or line feed) mark. Be sure you can see the paragraph marks throughout your document.

    Now, to quickly get rid of all the pesky extra paragraph marks, in Word, type Ctrl-H to open the "Find and Replace" wizard. Enter "^p" (without the quotes; that's "caret-lower-case-p") in the "Find What" window. Enter " " (that's a space; one tap of the space bar) in the "Replace With" window. Type Alt-A to "Replace All." Now everything is in one paragraph. You'll have to go through and manually enter new paragraphs ("Enter" key) where desired.

    There is an advanced quick trick that makes preserving the original paragraphs a little bit easier. Before removing all the paragraph marks as described above, go through the Word document and locate each paragraph mark that you want to keep (the ones marking the ends of paragraphs). These should be easy to spot, because they will frequently be short lines. Each time you find one, enter a character sequence not found elsewhere in your document. (An easy one is "zzz")

    Now, replace all paragraph marks, as described in the first paragraph of my message. (Once you're comfortable with the keystrokes involved, it really takes only four or five seconds.)

    Having done that, go through the same procedure, but replace "zzz" with "^p" to begin a new paragraph. Or replace "zzz" with "^p^p" to do a double-space between paragraphs in your Word document.

    One more tip: If the Word document already has two paragraph-marks between paragraphs (causing a double-space between paragraphs), it's even easier. Before doing anything else, Ctrl-H and in "Find what" type "^p^p" (without the quote marks). In "replace with" type "zzz" (without the quote marks.) Now Alt-A to Replace All. This differentiates between the single paragraph marks and the double-space double paragraph marks, by turning the double paragraph marks into something unique: "zzz" or whatever. Don't panic at the looks of your document!

    Now replace "^p" (the single paragraph marks) with " " (a space).

    Finally, replace "zzz" with "^p^p" to restore your double-space between paragraphs.
    Last edited by leemcintyre; 2013-02-28 at 07:31. Reason: typo

  11. The Following User Says Thank You to leemcintyre For This Useful Post:

    CyndieBrowning (2013-03-01)

  12. #26
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    3,770
    Thanks
    0
    Thanked 162 Times in 150 Posts
    Quote Originally Posted by leemcintyre View Post
    I'm sure most know this quick trick for getting rid of the paragraph marks at the end of each line in the Microsoft Word document -- the document you created when you copy text from a PDF. In case someone doesn't, I'll go through it.
    One could do that, or one could use the macro I supplied and have it done in an instant (almost).

    Your suggestion of deleting all paragraph breaks at the start (or editing the document by adding 'zzz' to the ends you want to restore) actually creates a lot of unnecessary work. And, if you don't like using macros, you'll find the manual equivalent of the four Find/Replace processes in the macro are both much simpler and more thorough.
    Last edited by macropod; 2013-02-28 at 19:31.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  13. #27
    Star Lounger
    Join Date
    Dec 2009
    Location
    SF East Bay, California, USA
    Posts
    61
    Thanks
    10
    Thanked 2 Times in 2 Posts
    This is all very interesting, but seems a little too one-sided. First -- using a macro to strip out the stuff you don't want from the PDF is more than beginner level, and totally unnecessary for simple copy-paste usage. Second -- all the responders are concentrating on only M$$ Office in its various versions. What about LibreOffice? The latest version, still free, is LibreOffice 4.0.0.3. It has the ability to open, edit, and convert to Word any PDF -- and has since its days as OpenOffice. A little bit large download (nearly 200MB), installs faster than previous versions, but its pretty much compatible with all recent versions of M$$ Office, and I use it for simple conversions between formats quite often (although not for PDFs so much as I have Acrobat Pro).

    Try it, you'll like it!

    Rob

  14. #28
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    3,770
    Thanks
    0
    Thanked 162 Times in 150 Posts
    Quote Originally Posted by rbsteinbach View Post
    First -- using a macro to strip out the stuff you don't want from the PDF is more than beginner level, and totally unnecessary for simple copy-paste usage.
    Sure it's more than beginner level, but who wants to stay there? Besides, once installed (which is very easy), the macro can be used on content pasted not only from PDFs, but also from any web pages, emails and so on where the source insert line breaks at the end of every line. Installed, the macro (which works in any version of Word) is no more difficult to use than anything else you might want to access via a toolbar or a Ribbon tab's dropdown and can be assigned to a shortcut key. And maybe you hadn't noticed, but Chuck isn't exactly a beginner anyway.
    Second -- all the responders are concentrating on only M$$ Office in its various versions. What about LibreOffice?
    Maybe that's because they're paying attention to the thread subject: "Copying text from a PDF into a Word document". As for download and installing LibreOffice, doing so is rather like using a wrecking ball to drive in a screw. And here you are, saying using a macro is "totally unnecessary" ...
    Last edited by macropod; 2013-02-28 at 15:10.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  15. #29
    Lounger
    Join Date
    Dec 2009
    Location
    Melbourne Victoria Australia
    Posts
    34
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by macropod View Post
    Maybe that's because they're paying attention to the thread subject: "Copying text from a PDF into a Word document". As for download and installing LibreOffice, doing so is rather like using a wrecking ball to drive in a screw. And here you are, saying using a macro is "totally unnecessary" ...
    LibreOffice handles "Word" documents OK and maybe the suggestion is to use it for the full process rather than both MS Word and Foxit. It's also a very good program.

  16. #30
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    3,770
    Thanks
    0
    Thanked 162 Times in 150 Posts
    Quote Originally Posted by malaus View Post
    LibreOffice handles "Word" documents OK and maybe the suggestion is to use it for the full process rather than both MS Word and Foxit.
    Completely irrelevant - The OP uses Word and asked for help with that. Telling someone they should load up their system with unnecessary software is just dumb.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

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