Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-30-2018, 12:08 AM
bps001 bps001 is offline Word to pdf conversion adds text in header Windows 10 Word to pdf conversion adds text in header Office 2010 64bit
Novice
Word to pdf conversion adds text in header
 
Join Date: Jan 2018
Posts: 8
bps001 is on a distinguished road
Default Word to pdf conversion adds text in header

I have Word 2010 on a Windows 10 64-bit PC. When attempting to save a Word doc as a pdf, the [save] operations changes the original word document by causing errant text to appear. I have tried to use the [save as] options as well as the [print to pdf] option. Both result in the original Word document being changed with the insertion of errant text. Never had this problem before, but now I can't seem to find a work-around solution. Need to create an error-free pdf.

Last edited by Charles Kenyon; 01-31-2018 at 05:15 AM. Reason: Change title to give more accurate information about problem. Mark as solved.
Reply With Quote
  #2  
Old 01-30-2018, 01:06 AM
gmayor's Avatar
gmayor gmayor is offline Word to pdf conversion adds text in header Windows 10 Word to pdf conversion adds text in header Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Give us a clue about what the issue is. We cannot see your documents.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 01-30-2018, 06:29 AM
Charles Kenyon Charles Kenyon is offline Word to pdf conversion adds text in header Windows 10 Word to pdf conversion adds text in header 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

Unless you need it for Excel or Access, there is no reason to be using the 64-bit version of Office. The 64-bit version may not work with Add-Ins.

Are you using Adobe Acrobat or Word's built-in pdf utilities?

You could attach an example Word document and the problematic pdf.
How to attach a screenshot or file in this forum.
Reply With Quote
  #4  
Old 01-30-2018, 10:27 AM
bps001 bps001 is offline Word to pdf conversion adds text in header Windows 10 Word to pdf conversion adds text in header Office 2010 64bit
Novice
Word to pdf conversion adds text in header
 
Join Date: Jan 2018
Posts: 8
bps001 is on a distinguished road
Default

I have attached three jpg's.
[Original] is how the Word doc looks prior to conversion.
[New original with errors] is what happens to Word doc when I attempt to save the file as a pdf. This also occurs when I try to "print to pdf". Notice the additional text now appearing in the header (grayed out). That additional text is being obtained from the body of the text document.
[pdf error] shows the errant text now being reflected in the created pdf.

This only occurs on some pages. I have tried to use [Format paint] in an attempt to "paint" a good header format in place of the supposed bad header, but there was no effect.
Attached Images
File Type: jpg Original Doc.JPG (179.1 KB, 16 views)
File Type: jpg New original with errors.JPG (167.2 KB, 16 views)
File Type: jpg pdf error.JPG (85.0 KB, 16 views)
Reply With Quote
  #5  
Old 01-30-2018, 10:54 AM
Charles Kenyon Charles Kenyon is offline Word to pdf conversion adds text in header Windows 10 Word to pdf conversion adds text in header 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

Without the document, I can't tell from a screenshot.

I suspect that you have a StyleRef Field in your header that is picking up text formatted in the given style; that text should not be formatted in that style. The number of characters, though, exceeds what such a field will copy.

That could give you the effect of appearing to change the document when you convert to pdf or print to pdf.
Reply With Quote
  #6  
Old 01-30-2018, 12:00 PM
bps001 bps001 is offline Word to pdf conversion adds text in header Windows 10 Word to pdf conversion adds text in header Office 2010 64bit
Novice
Word to pdf conversion adds text in header
 
Join Date: Jan 2018
Posts: 8
bps001 is on a distinguished road
Default

Thanks for the suggestion. I tried changing the style field for the header to "normal", then saved to pdf, but the error reappeared.
Reply With Quote
  #7  
Old 01-30-2018, 12:29 PM
bps001 bps001 is offline Word to pdf conversion adds text in header Windows 10 Word to pdf conversion adds text in header Office 2010 64bit
Novice
Word to pdf conversion adds text in header
 
Join Date: Jan 2018
Posts: 8
bps001 is on a distinguished road
Default

In deference to an earlier post about styfle formatting, I attached a screen shot of the style format information screen being used for the header. Can't see anything amiss although the error continues following conversion to pdf.
Attached Images
File Type: jpg Style formet.JPG (43.3 KB, 14 views)
Reply With Quote
  #8  
Old 01-30-2018, 12:42 PM
Charles Kenyon Charles Kenyon is offline Word to pdf conversion adds text in header Windows 10 Word to pdf conversion adds text in header 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

Look at the link on the StyleRef Field. It is not the style of the header that matters!

If you can't attach a part of the problem document, then try pressing Alt+F9 to see what fields are in the header.
Reply With Quote
  #9  
Old 01-30-2018, 01:07 PM
bps001 bps001 is offline Word to pdf conversion adds text in header Windows 10 Word to pdf conversion adds text in header Office 2010 64bit
Novice
Word to pdf conversion adds text in header
 
Join Date: Jan 2018
Posts: 8
bps001 is on a distinguished road
Default

I attached some sample pages with the Alt-F9 features exposed.
Attached Files
File Type: docx sample.docx (23.7 KB, 7 views)
Reply With Quote
  #10  
Old 01-30-2018, 01:39 PM
Charles Kenyon Charles Kenyon is offline Word to pdf conversion adds text in header Windows 10 Word to pdf conversion adds text in header 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

Your header has three fields in it, at least one of which does not belong there.
00 deleteme 1.png

There is no reason for a TOC field to be in a header. I suspect that field is what is causing at least part of your problem, but it could be the Ref field.

Read the information on the StyleRef field and decide if that might be what you want to be using instead of the Ref field. I think you do. Then you would not have to unlink your headers and put in a different ref field.

If there is a reason you want a TOC field, tell us and someone will tell you what to use instead.

You can likely get rid of the \* MERGEFORMAT switch from each of these fields as well.

I'm amazed that your document worked at all with a TOC field in the header.
That is a Table of Contents field.

By the way, the Alt+F9 command controls the setting on your computer to display field codes. It does not change the content of the document at all. Remember to use it to toggle the display back when you are done looking.
Reply With Quote
  #11  
Old 01-30-2018, 02:00 PM
bps001 bps001 is offline Word to pdf conversion adds text in header Windows 10 Word to pdf conversion adds text in header Office 2010 64bit
Novice
Word to pdf conversion adds text in header
 
Join Date: Jan 2018
Posts: 8
bps001 is on a distinguished road
Default

Thanks for the feedback. I have to admit that I do not know what the various codes mean that are found in the header. As for the TOC, I wonder if that appears when I [insert] [Cross Reference] [Heading] which happens to match the TOC. As for the \* MERGEFORMAT, I do not know what causes them. I will attempt to erase each and see what the impact is, then start the process all over again. If all fails, I can take the basic text document, and start all over again with new headers and see what happens. Appreciate the support.
Reply With Quote
  #12  
Old 01-30-2018, 03:26 PM
Charles Kenyon Charles Kenyon is offline Word to pdf conversion adds text in header Windows 10 Word to pdf conversion adds text in header 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

Quote:
Originally Posted by bps001 View Post
Thanks for the feedback. I have to admit that I do not know what the various codes mean that are found in the header. As for the TOC, I wonder if that appears when I [insert] [Cross Reference] [Heading] which happens to match the TOC. As for the \* MERGEFORMAT, I do not know what causes them. I will attempt to erase each and see what the impact is, then start the process all over again. If all fails, I can take the basic text document, and start all over again with new headers and see what happens. Appreciate the support.
  • Again, I urge you to follow the link on the StyleRef Field. There is no need or reason to be using a cross-reference that I can figure out.
  • The TOC field does not get inserted as a side-effect of the Ref field.
  • The \* MERGEFORMAT switch gets entered automatically when you let Word insert fields without unchecking the box to preserve formatting during updates. You would think that is what you want, but you do not. However, that switch is not causing the problem you've observed.
Reply With Quote
  #13  
Old 01-30-2018, 04:16 PM
bps001 bps001 is offline Word to pdf conversion adds text in header Windows 10 Word to pdf conversion adds text in header Office 2010 64bit
Novice
Word to pdf conversion adds text in header
 
Join Date: Jan 2018
Posts: 8
bps001 is on a distinguished road
Default

So, I looked at the StyleRef link but could not understand how to follow instructions that applied to a book layout - chapter titles on left (even) page and page numbers on odd page. I am able to set up the odd/even format, but didn't see how the StyleRef would allow insertion of the chapter titles on the even pages. From other web instructions, they said to [Insert] [Cross Reference] [Heading] which worked for most of the pages, except where it failed. Any suggestions on how to set up chapter titles in the header of an odd/even typical book layout using StyleRef?
Reply With Quote
  #14  
Old 01-30-2018, 07:16 PM
macropod's Avatar
macropod macropod is offline Word to pdf conversion adds text in header Windows 7 64bit Word to pdf conversion adds text in header 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 bps001 View Post
So, I looked at the StyleRef link but could not understand how to follow instructions that applied to a book layout - chapter titles on left (even) page and page numbers on odd page. I am able to set up the odd/even format, but didn't see how the StyleRef would allow insertion of the chapter titles on the even pages. From other web instructions, they said to [Insert] [Cross Reference] [Heading] which worked for most of the pages, except where it failed. Any suggestions on how to set up chapter titles in the header of an odd/even typical book layout using StyleRef?
This really is very simple.
1. Go to Page Layout|Page Setup>Layout and choose 'different odd and even'.
2. Insert the StyleRef field into an even page header.
3. Delete all content except the {PAGE} field from an odd (primary) page header.
Done.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #15  
Old 01-30-2018, 08:15 PM
bps001 bps001 is offline Word to pdf conversion adds text in header Windows 10 Word to pdf conversion adds text in header Office 2010 64bit
Novice
Word to pdf conversion adds text in header
 
Join Date: Jan 2018
Posts: 8
bps001 is on a distinguished road
Default

To All: Thanks for your help on this issue. I appreciate the time you took to respond and I learned from your expertise.
Reply With Quote
Reply

Tags
pdf error, pdf save error



Similar Threads
Thread Thread Starter Forum Replies Last Post
Office File Converter (OFC.exe) - good for Word 2003 to Word 2013 conversion? RichardDavey Word 4 05-28-2015 05:36 PM
Word to PDF conversion Josh1 Word 0 03-29-2012 01:52 PM
File Conversion Error azii Word 0 01-04-2012 04:34 AM
Word to pdf conversion adds text in header pdf to word conversion wordpdf Word 3 05-15-2011 01:58 PM
File conversion error shadowfierce Word 0 12-17-2010 01:43 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:31 AM.


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