Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-25-2018, 02:39 AM
catflap's Avatar
catflap catflap is offline Including header when saving as Plain Text Windows 7 64bit Including header when saving as Plain Text Office 2013
Advanced Beginner
Including header when saving as Plain Text
 
Join Date: Aug 2015
Location: UK
Posts: 77
catflap is on a distinguished road
Default Including header when saving as Plain Text

Hi




I have a word 2013 doc with a sequential number preceded by an underscore in the header of each page. When I save as Plain Text these headers do not appear in the file.


I need this text to come through as I'm going to be using it for another process afterwards.


Is there any way to keep the header when I export as text?


Failing that, is there a way to move the header to the top of the body text for each page without doing it manually? (it's possible there will be several thousand pages to work with).


Thanks for reading!
Reply With Quote
  #2  
Old 07-25-2018, 03:27 AM
Charles Kenyon Charles Kenyon is offline Including header when saving as Plain Text Windows 10 Including header when saving as Plain Text Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,464
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

Try, as an intermediate step, saving as pdf. Then convert the pdf to plain text. (I do not know how to do this but assume there is a method.)



The structure of Word documents is such that the headers and footers are not part of the text and page numbers are not fixed until the document is printed.
Reply With Quote
  #3  
Old 07-25-2018, 04:11 AM
catflap's Avatar
catflap catflap is offline Including header when saving as Plain Text Windows 7 64bit Including header when saving as Plain Text Office 2013
Advanced Beginner
Including header when saving as Plain Text
 
Join Date: Aug 2015
Location: UK
Posts: 77
catflap is on a distinguished road
Default

Hi Charles


Thanks for your reply.


Odd you should suggest saving to pdf because this word doc has been created by Acrobat. I didn't giove all details of what I'm doing to keep the query simple, but if it helps to know, this is it:



What I've been given is a pdf of letters - one per page, several thousand pages for some files. In Acrobat Pro DC I've been cropping to the address area, and then adding a header. I then export to Word, and in turn save as plain text.


I can't export to Plain text directly from Acrobat as it seems to mess up some of the characters, but going via Word usually works OK.


The weird thing is that sometimes the header comes through into word as part of the body text (which is what I want), but for some pdfs it comes through as a header, which I then can't include if I save as text.


With all this in mind, I don't think going back to pdf format is the answer.


Any other thoughts please?
Reply With Quote
  #4  
Old 07-25-2018, 04:19 AM
macropod's Avatar
macropod macropod is offline Including header when saving as Plain Text Windows 7 64bit Including header when saving as Plain Text Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,366
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

Header & footer content are liable to be saved after all the body content when you save a document as a plain text file. Headers & footers, as such, don't exist in a plain text file.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 07-25-2018, 04:35 AM
catflap's Avatar
catflap catflap is offline Including header when saving as Plain Text Windows 7 64bit Including header when saving as Plain Text Office 2013
Advanced Beginner
Including header when saving as Plain Text
 
Join Date: Aug 2015
Location: UK
Posts: 77
catflap is on a distinguished road
Default

Hi Macropod


I've seen headers appear after the rest of the data before, but it doesn't seem to happen in this case - they don't seem to appear at all, so it must be some sort of difference in formatting or some such.



If we accept that there's no way to get headers to export as text, is the alternative of moving the header to the top of the body text before exporting possible? - preferably without using vba as I need some of my non-technical colleague to be able to use the files.


I've attached a test doc if it helps (with some body text and a page number in the header).
Attached Files
File Type: docx test with headers.docx (17.2 KB, 9 views)
Reply With Quote
  #6  
Old 07-25-2018, 02:48 PM
macropod's Avatar
macropod macropod is offline Including header when saving as Plain Text Windows 7 64bit Including header when saving as Plain Text Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,366
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

If your document has Section breaks, the header/footer content may appear where those used to be.

Moving the headers/footers into the document body before the export can be done manually, or via a macro. Since only one instance of each header & footer exists in each Section, you're not going to get one with page #s for every page unless you copy the relevant headers/footers to every page in the Section.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 07-27-2018, 01:42 AM
catflap's Avatar
catflap catflap is offline Including header when saving as Plain Text Windows 7 64bit Including header when saving as Plain Text Office 2013
Advanced Beginner
Including header when saving as Plain Text
 
Join Date: Aug 2015
Location: UK
Posts: 77
catflap is on a distinguished road
Default

Hi Macropod


Thanks for reply - it sounds like I need a rethink on this. I'll try and work something else out.


Cheers
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Including header when saving as Plain Text Plain text help with returns - looking for marker to use when converting to plain text redzan Word 1 04-18-2017 06:17 PM
Including header when saving as Plain Text Convert image-text hybrids into plain text morlack Excel 4 12-03-2014 05:29 PM
Including header when saving as Plain Text Rich text/Plain text Content Controls in Template michael.fisher5 Word 9 11-19-2014 06:36 AM
My plain text post got converted to rich text in a reply, how to convert it back? david.karr Outlook 0 01-05-2012 09:46 AM
Copy plain text message including sender, recipient, and subject distancesprinter Outlook 0 01-22-2010 12:49 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:23 PM.


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