Skip to main content
Nintex Community Menu Bar

Topic


How to test and verify that the Document Conversion Service is working. This may be necessary if there are any issues with the Covert Document action

 

Instructions

 

Run the following lines Sharepoint Management Shell:

 

 

 

cvoid]vSystem.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Word.Server") $jobSettings = New-Object Microsoft.Office.Word.Server.Conversions.ConversionJobSettings $jobSettings.OutputFormat = "PDF" $job = New-Object Microsoft.Office.Word.Server.Conversions.ConversionJob("Word Automation Service", $jobSettings) $job.UserToken = (Get-SPWeb http://share).CurrentUser.UserToken $job.AddFile("http://DocumentLibrary/Doc.docx", "http://DestinationLibrary/TEST.pdf") $job.Start()

 

 


Replace the DocumentLibrary/Doc.Docx, with the source URL and document to be converted.
Replace the DestinationLibrary/Test.pdf with the URL of the destination library.
Replace the http://Share with the URL to of the Site collection/Site.

 

Additional Information

 

The Covert Document action utilizes the Word Automation Service in SharePoint to convert a document to PDF. The short script above converts a document via PowerShell. This method of converting a document is intended to remove other variables (i.e. Nintex Workflow) and confirm if the Word Automation service is functional.

 

Related Links

 

https://help.nintex.com/en-US/nintex2019/current/#sp2019/Workflow/ActionsCore/ConvertDocument.htm?Highlight=convert%20document

Be the first to reply!

Reply