Sign in Sign up
nuget

Accusoft.ImageGearMP.Office

The `Accusoft.ImageGearMP.Office` package allows users to load, render, convert, and read metadata from Microsoft Word, Excel, and PowerPoint files. ## Dependencies ## ImageGear depends on LibreOffice v7 or later to provide support for office documents. LibreOffice can be obtained from [libreoffice.org](https://www.libreoffice.org/). For full setup instructions for Windows and Linux, see the [Getting Started with ImageGear Office](https://help.accusoft.com/ImageGear/latest/webframe.html#getting-started-with-imagegear-office.html) page of our documentation. ## Getting Started ## ImageGear makes it simple to work with office documents: ``` using System.IO; using ImageGear.Formats; using ImageGear.Formats.PDF; using ImageGear.Formats.Office; // Initialize office support ImGearCommonFormats.Initialize(); ImGearFileFormats.Filters.Add(ImGearPDF.CreatePDFFormat()); ImGearFileFormats.Filters.Add(ImGearOffice.CreateWordFormat()); ImGearPDF.Initialize(); ImGearOffice.Initialize(@"C:\Program Files\LibreOffice\program"); // Load a Word document. ImGearWordDocument document = null; using (Stream stream1 = File.OpenRead("input.docx")) document = ImGearFileFormats.LoadDocument(stream1) as ImGearWordDocument; // Save the first page of the Word document to a PNG file using (Stream pngOutputStream = File.Create("output.png")) ImGearFileFormats.SavePage(document.Pages[0], pngOutputStream, ImGearSavingFormats.PNG); // Dispose the document and terminate office support document.Dispose(); ImGearOffice.Terminate(); ImGearPDF.Terminate(); ``` For more examples of how to use ImageGear's API, check out our [sample code repository](https://github.com/Accusoft/imagegear-net-samples) on github. ## Licensing ## While you are evaluating the product, ImageGear doesn't require any licensing setup. The SDK is ready to use as soon as the NuGet package is installed. Until a paid license is purchased, image output will be watermarked. Contact info@accusoft.com for more information. ## Documentation ## API documentation and how-to content for ImageGear can be found online [here](https://help.accusoft.com/ImageGear/latest/webframe.html).

nuget View on Nuget

Activity

Latest release
1y ago
Total releases
1
Cadence
Last 12 months
0

Details

First release
Jan 06, 2025
Releases
Version Released
27.0.0 initial