Word Automation Services was provided by Microsoft in SharePoint 2010 and Office 2010. To Automate MSWord Base Bulk file Operations on Server. Operations which include Converting Documents from two different formats like pdf, doc, docx. And update table of contents, importing alternate format chunks.
The word automation service helps Developers to meet their business requirements for Server Side Automation of Microsoft word. In past
Developers were used to Open XML Object Model to two Perform these kind of task which actually quite good but not highly scale able.
The Word Automation Service is Highly Optimized to perform huge Service Side Operations to provide significantly Great Performance for Solution. In SharePoint 2013 Microsoft improves allot in Word Automation Services major improvement are following.
Word Automation Services 2013 architecture:
On demand file operations
In SharePoint 2013 now Developers can create on Demand file Operations on the server by using Word Automation Services. In Order to create on Demand file operations in SharePoint 2013 have to call request to Word Automation Services. These requests are based on the tradition Asynchronous Timer Job-based requests. Which are not based on SharePoint timer jobs.
You can make on demand file conversion requests for only one file at a time. Word Automation Services in Microsoft SharePoint 2013, have the added option to create a file conversion request that’s processed As soon as you submit it and the conversion is started immediately and does not depend on the SharePoint Timer Job.
Stream support
Word Automation Services now support streams in SharePoint 2013. In Previous version of SharePoint 2010 Word Automation Services could convert only those files that were stored in SharePoint libraries. Now using Stream developer can store files outside of SharePoint.
Sample Code
//
ConversionJob 2010
ConversionJob pdfJob = new
ConversionJob("W A S");
pdfJob.UserToken =
myWebsite.CurrentUser
.UserToken;
pdfJob.AddFile
(outputFilename,
outputFilename.Replace
("
.docx", "
.pdf"));
//Will Start after
Provking start
Funcation
pdfJob.Start
();
http://msdn.microsoft.com/en-us/library/ee587667(v=office.14).aspx
//On demand file operation
SyncConverter syncConv = new
SyncConverter("W A S");
syncConv.Settings
.OutputFormat = SaveFormat.PDF;
ConversionItemInfo convInfo = syncConv.Convert(inStream, outStream);
http://msdn.microsoft.com/en-us/library/microsoft.office.conversionservices.conversions.syncconverter.aspx#feedback
Reference
http://blogs.office.com/b/microsoft-word/archive/2009/10/26/introducing-word-automation-services.aspx
http://msdn.microsoft.com/en-us/library/ee558830.aspx
http://msdn.microsoft.com/en-us/library/jj163073.aspx