Skip to main content


 

Symptoms

 


PDF Conversion from DOCX error
 

 

Diagnoses

 


I have a workflow that converts a document from docx to pdf. Normally there is no issue with this but I have a number of documents that have a Header and then a Table of Contents that are not being converted correctly. The line that has the header is replaced with the text - ERROR! NO TEXT OF SPECIFIED STYLE IN DOCUMENT. And the Table of contents is removed.
 

 

Resolution

This particular issue appears to be with the source docx file.

When making use of the "Word Documents Event > Convert Document" functionality the Word Documents Event is essentially making use of Sharepoint's Word Automation Services.

If you were to use the Powershell scripts below to convert the word document experiencing this issue to a pdf using the just the Sharepoint Word Automation Services, do you see the same issue?

https://alberthoitingh.wordpress.com/2012/05/22/word-automation-services-and-powershell/

You may need to add the Sharepoint Powershell module with:

Add-PSSnapin Microsoft.Sharepoint.Powershell

I also found some posts that may be related to this error below (perhaps corrupted docx file prior to the conversion):

http://answers.microsoft.com/en-us/office/forum/office_2010-word/problems-with-figure-links-and-cross-referencing/a4eafd04-7410-4843-9ae0-4802368b488b
http://answers.microsoft.com/en-us/office/forum/office_2010-word/error-no-text-of-specified-style-in-document/428bf868-9bb9-4d82-9372-8bb5e4607470

 

 



 
Be the first to reply!

Reply