Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2016, 11:41 AM
Jazz43 Jazz43 is offline Copy text from PDF Windows 7 64bit Copy text from PDF Office 2010 64bit
Advanced Beginner
Copy text from PDF
 
Join Date: Oct 2009
Posts: 54
Jazz43 is on a distinguished road
Default Copy text from PDF

Hi everyone,
I'm trying to copy text from some PDF to Word 2013 but the lines keep cut off abruptly. If the there's an end-of-line in the middle of a sentence, it would just understand it as a new paragraph when copied over to Word. Effectively, breaking a paragraph into a few small ones. I'm trying to see if there's anyway I can find these sentences and fix them.

Like, for example, if it finds a new paragraph starting with a lower-case character, it would just append that paragraph to the previous one. Can I do something like that?
Reply With Quote
  #2  
Old 02-06-2016, 01:23 PM
Charles Kenyon Charles Kenyon is offline Copy text from PDF Windows 8 Copy text from PDF Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,125
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

See Cleaning up text pasted from the Web
Reply With Quote
  #3  
Old 02-06-2016, 02:07 PM
macropod's Avatar
macropod macropod is offline Copy text from PDF Windows 7 64bit Copy text from PDF Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

See also: https://www.msofficeforums.com/word/...ne-breaks.html. Fancy that, it's a reply to your own post of 11-11-2011!!!
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 02-17-2016, 07:39 PM
Jazz43 Jazz43 is offline Copy text from PDF Windows 7 64bit Copy text from PDF Office 2010 64bit
Advanced Beginner
Copy text from PDF
 
Join Date: Oct 2009
Posts: 54
Jazz43 is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
See also: https://www.msofficeforums.com/word/...ne-breaks.html. Fancy that, it's a reply to your own post of 11-11-2011!!!
Thank you. It was quite q while ago. But the macro also mistakes separate paragraphs as one. For example, if there is a ^p (paragraph break) character followed by a capital letter (which should be recognized as a new paragraph), it adds these two paragraphs together. Is there a better way to solve this?
Reply With Quote
  #5  
Old 02-17-2016, 08:11 PM
macropod's Avatar
macropod macropod is offline Copy text from PDF Windows 7 64bit Copy text from PDF Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Jazz43 View Post
Thank you. It was quite q while ago. But the macro also mistakes separate paragraphs as one.
It makes no such mistake. As clearly stated in the post, it requires that you have two paragraph breaks between the logical paragraphs; other than that - or inserting some other kind of identifying marker - there is no other reliable way of identifying where a given paragraph ends. That might entail adding an extra paragraph manually, where required, but that's trivial compared to the effort the macro potentially saves you.

Your suggestion of using a paragraph break followed by a capital letter isn't reliable, as:
a) sentences within a multi-line paragraph can start on a new line; and
b) sub-paragraphs (such as this one), which are separate paragraphs formatting-wise, don't always start with capital letters; they may also start with lower-case letters, bullets, numbers or opening parentheses, for example.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy text from PDF Copy paste highlighted text to another doc MSoffice1 Word VBA 17 04-16-2022 06:45 AM
Copy text from PDF We have many word docs we need to copy text from skyslayer Word VBA 16 09-02-2014 07:03 AM
Copy text from PDF Copy text pastes image kfranken8 Word 2 07-12-2012 09:33 PM
Copy text from PDF Mark text in a text box and copy to clipboard (with button) ArthurM PowerPoint 4 02-19-2012 11:33 AM
Copy text from PDF copy from word into a formatting text box mikewooten Word 1 06-15-2010 02:04 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:42 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft