Hi
I am converting one single document into pdf using Word Automation Services SharePoint 2010. When I run simple code
Input parameters for the script$wordFile="http://sharepointserver/documents/word.docx"
$pdfFile="http://sharepointserver/documents/pdf.pdf"
# Get the Word Automation Service Proxy
$wasp = Get-SPServiceApplicationProxy | where { $_.TypeName -eq "Word Automation Services Proxy" }
#Create the Conversion job
$conversionJob = New-Object Microsoft.Office.Word.Server.Conversions.ConversionJob($wasp)
# Get the web url
$web = Get-SPWeb "http://sharepointserver/"
# Set the credentials to use when running the conversion job.
$conversionJob.UserToken = $web.CurrentUser.UserToken
# Conversion Job Name
$conversionJob.Name = "Convert docx to PDF"
$conversionJob.Settings.OutputFormat = [Microsoft.Office.Word.Server.Conversions.SaveFormat]::PDF
$conversionJob.AddFile($wordFile,$pdfFile)
# Start the conversion job
$conversionJob.Start()
It generate error code 6 in database. I checked everything and have given same user permissions every where. I could not resolve this issue. It is not db issue. I seen Event ID 1001 resolution as well and have gone through this process. But still in vain.
Can anyone help in this issue?