Skip to main content
Search Again

We think these articles could help you:

    See More
    Nintex Knowledge Base

    Verifying Document Conversion Service is Working

    Status: Validated

    TOPIC
    How to test and verify that the Document Conversion Service is working.
    INSTRUCTIONS
    From the Sharepoint server, under Sharepoint Management Shell, run the following Powershell command: 
    [void][System.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 Nintex Workflow Covert Document action utilizes the Document Conversion Service to convert a document to PDF.
    RELATED LINKS
    • Was this article helpful?