Accusoft.ImageGear.Office NuGet Package

The `Accusoft.ImageGear.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 [email protected] 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).




Got any Accusoft.ImageGear.Office Question?





Info

Version: 26.4.0
Author(s): Accusoft
Last Update: Friday, April 26, 2024
.NET Fiddle: Create the first Fiddle
Project Url: https://accusoft.com/
NuGet Url: https://www.nuget.org/packages/Accusoft.ImageGear.Office


Install
Install-Package Accusoft.ImageGear.Office
dotnet add package Accusoft.ImageGear.Office
paket add Accusoft.ImageGear.Office
Accusoft.ImageGear.Office Download (Unzip the "nupkg" after downloading)

1 package depend on this package.




STATS

must-have-score

1

avg-downloads-per-day

39

days-since-last-release

1