![]() public static void ConvertToPdf ( string inputFile, string outputFile ) Initialize UNO components and saves to PDF in the end. This method starts up Open Office executable, This is the method you will be actually using on your assembly or expose from your class library. You will be needing these namespaces imported using System.Diagnostics using System.IO using System.Threading using uno using uno.util using .beans using .frame using .lang ![]() ImplementationĪdd reference to all the DLLs above on your project follow the noted methods below. If you have installed Open Office SDK, you will get these files under sdkcli on you installed SDK folder. ![]() NOTE: Open Office SDK is not quite required if you can copy the required assemblies from GAC to you application’s assembly folder. See Open Office Developer Guide for details. Open Office has CLI implementation on Java’s UNO development environment for their API to use on. I started searching and working on a workable demo to convert office Ubuntu netbook and I knew Open Office has their API exposed with UNO. As I have some interaction with Open Office on my Microsoft Office doesn’t have any API or exposes any command to achieve this target. Lately, we had this requirement to convert office documents such as DOC, DOCX, XLS, XLSX, PPT, PPTX to PDF.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |