We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert Doc to PDF in MOSS 2007

Hi,

I am using sharepoint server 2007. I want to convert a doc to PDF using the document conversion. I referred this link: https://docs.aspose.com/words/sharepoint/
The link was really helpful and easy to understand. I was able to perform all the actions mentioned in it. But the only problem I am facing is its not converting a doc to pdf. After uploading the doc file, when we select the drop down, we get an option ‘Convert Document’ which we select. I am getting the option also, but after selection, the pdf is not created. No errors is shown. The logs also don;t contain any errors. Please help me out. I would like to get a solution as fast as possible.

Waiting for response.

Thanks,
Pooja

So far we tried not to provide technical support on this issue. Basically, if Aspose.Words is invoked - then it works. But otherwise it is a problem with overly complex way that Microsoft is desinged into MOSS for configuring and invoking document converters. We do not really have resources to provide technical support for a Microsoft product as you can understand.

What the article describes was actually written “from live steps” and if followed properly it should work. I’m not saying you’ve done something incorrectly, but you need to double check the steps and MOSS configuration.

We will think about how else we could help, but at this stage we really cannot start supporting Microsoft SharePoint Server on our site.

Hi,
I am also getting same problem. i.e i referred the link https://docs.aspose.com/words/sharepoint/

i implemented as per the link.
but i am not getting the PDF file after Converting Word to PDF (by aspose). i am not getting any error, but PDF is not shown in the Library.
Pls help me in this Regard for any changes i need to change to convert Word to PDF.

Thanks in Advance
Avinash

Hi

Thanks for your inquiry. This works fine on our side. Maybe you have missed something in configuration.

Best regards.

Hi,

Thanks for the Quick response,

I have restarted the Load balancer service and launcher service after getting this problem, but the problem is not resolved.

I have checked the folder in >>Program Files\Microsoft Office Servers\12.0\Bin\HtmlTrLauncher, but i didnot found any PDF file in that folder.

Do i need any changes in the CODE which is given in https://docs.aspose.com/words/sharepoint/

Has anyone found solution for this.

Any help will be appreceated.

Thanks,

Avinash

Hi

Thanks for your inquiry. Do you get any errors? Please check the MOSS log files, they are pretty detailed. The log files are in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOGS. You can also attach logs here for reviewing.

Best regards.

Hi,
Thanks for ur Quick response.
I am not getting any errors when i selected the ConvertDocument->Document to PDF.
I am not able to see the PDF in library. I have checked the LOG file, and found below errors.
Document Conversions Launcher Service 6102 Critical LoadBalancer.RegisterLauncher failed: The remote server returned an error: (401) Unauthorized.
Document Conversions Timer Job 5448 Critical The document converter was not able to convert the file.
09/17/2008 10:51:50.09 w3wp.exe (0x120C) 0x0618 CMS Publishing

Please help me to resolve the problem

Thanks in advance
Avinash

Hi

Thank you for additional information. I think there is some issue with user authentication. I google a bit and found that problem could be resolved by changing the service account of the Document Conversions Load

Balancer Service in ‘Central Administration/Operations/Service Accounts’

window.

Best regards.

Hi Pooja,

I am also getting same problem. Is it resolved in ur case, if yes please help me out, you can find more information in below posts.

Waiting for response.

Thanks in advance

Avinash

Hi,

Thanks for UR quick response. i tried to set service accounts in Operations tab to load balancer service, but its not persist.
So help me out regarding this issue

Thanks

Hi

Thanks for your request. From log you provided I see that “DocConversionLoadBalancerService” fails.

The DocConversionLoadBalancerService and DocConversionLauncherService services must be enabled and configured for your server farm before you can implement document converters.

Best regards.

Hi,

Thanks for UR quick response. i tried to set service accounts in Operations tab to load balancer service, but its not persist.
So help me out regarding this issue

Thanks

Hi

Thanks for your inquiry. Unfortunately, I have no idea how to help you in this case.

Best regards.

I am getting a similar error. Can you tell me how your system is setup (ie, is everything on one virtual server?), and how you have the laucher and balance service accounts configured (Operations/Service Accounts)? thanks Dan

Hi

Thanks for your inquiry. SharePoint server is installed on Virtual machine. OS is Win2003 Server Datacenter Edition.

I didn’t change anything in the SharePoint configuration except steps described in the following article:

https://docs.aspose.com/words/sharepoint/

Could you please provide me your log?

Best regards.

i was going to ask you the same thing, for a conversion which worked. I’ve attached a copy of a log from today.

I think the pertinent lines are;

Trying to get launcher from load balancer

Requesting launcher from load balancer

GetLauncher called for task Test Word Doc for conversion.docdoctrans

GetLauncher returning http://MOSS-DEV:8082/HtmlTrLauncher

Executing method on launcher

Starting C:\Program Files\Microsoft Office Servers\12.0\TransformApps\AWASPOSEDocToPdf.exe for single-call with args: -in "C:\Program Files\Microsoft Office Servers\12.0\Bin\HtmlTrLauncher\input.doc" -out "C:\Program Files\Microsoft Office Servers\12.0\Bin\HtmlTrLauncher\output.pdf" -config "C:\Program Files\Microsoft Office Servers\12.0\Bin\HtmlTrLauncher\config.info" -log "C:\Program Files\Microsoft Office Servers\12.0\Bin\HtmlTrLauncher\error.log"

Starting transform app as user

Error running the transform app. API: CreateProcessAsUser, Error Code: 1314

Running cleanup: succeeded: 0, task: Test Word Doc for conversion.docdoctrans

Calling LoadBalancer.LauncherTaskCompleted

LauncherTaskCompleted called with uri http://MOSS-DEV:8082/HtmlTrLauncher and task name Test Word Doc for conversion.docdoctrans

removed task name Test Word Doc for conversion.docdoctrans

New load for http://MOSS-DEV:8082/HtmlTrLauncher is 0

LoadBalancer.LauncherTaskCompleted successful

The document converter was not able to convert the file.

The file http://moss-dev:8080/CM/Field Order Attachments/Test Word Doc for conversion.doc could not be converted because of an error in the document converter.

Hi

Thank you for your inquiry. Could you please also check log in the following folder: C:\Aspose2Pdf\log.txt. If there is something wrong with your document the error will be logged there. Also please attach your Document for testing.

Best regards.

Hi Alexey,

Can you send to me your solution files including the executable? I don’t even get an entry in the log directory. If I try your files directly and it works, well then I have a but in my code that I’m just not seeing. If it doesn’t work, then it must be some configuration issue.

thanks Dan

Hi

Thanks for your inquiry. I attached my solution.

Hope this helps.

Best regards.

still won’t create pdf file.

Some lines from log - any idea how to resolve the errors? i’ve googled but haven’t found anything that helps. I’ve put the user in the local admin but that didn’t seem to fix anything.

LoadBalancer.LauncherTaskCompleted successful

GetLauncher called for task Test Word Doc for conversion.docdoctrans

GetLauncher returning http://WIN2K3MOSSDEV:8082/HtmlTrLauncher

Executing method on launcher

Failed to set access on the transform app folder: Some or all identity references could not be translated.

Starting C:\Program Files\Microsoft Office Servers\12.0\TransformApps\AWASPOSEDocToPdf.exe for single-call with args: -in "C:\Program Files\Microsoft Office Servers\12.0\Bin\HtmlTrLauncher\input.doc" -out "C:\Program Files\Microsoft Office Servers\12.0\Bin\HtmlTrLauncher\output.pdf" -config "C:\Program Files\Microsoft Office Servers\12.0\Bin\HtmlTrLauncher\config.info" -log "C:\Program Files\Microsoft Office Servers\12.0\Bin\HtmlTrLauncher\error.log"

Starting transform app as user

LauncherTaskCompleted called with uri http://WIN2K3MOSSDEV:8082/HtmlTrLauncher and task name Test Word Doc for conversion.docdoctrans

removed task name Test Word Doc for conversion.docdoctrans

New load for http://WIN2K3MOSSDEV:8082/HtmlTrLauncher is 0

Trying to get launcher from load balancer

Requesting launcher from load balancer

Error running the transform app. API: LogonUser, Error Code: 1326

Running cleanup: succeeded: 0, task: Test Word Doc for conversion.docdoctrans

Calling LoadBalancer.LauncherTaskCompleted

LauncherTaskCompleted called with uri http://WIN2K3MOSSDEV:8082/HtmlTrLauncher and task name Test Word Doc for conversion.docdoctrans

removed task name Test Word Doc for conversion.docdoctrans

New load for http://WIN2K3MOSSDEV:8082/HtmlTrLauncher is 0

LoadBalancer.LauncherTaskCompleted successful

The document converter was not able to convert the file.

The file http://dev.moss.lab/DCHDevSite/DCHDocuments/Test Word Doc for conversion.doc could not be converted because of an error in the document converter.

RegisterLauncher called with uri http://WIN2K3MOSSDEV:8082/HtmlTrLauncher