This is a cross-platform version of GroupDocs.Viewer for .NET. GroupDocs.Viewer for .NET is a powerful document viewer API that supports over 170 file types and enables .NET developers to easily render files to various formats, such as PDF, HTML, JPG, or PNG. With this API, you can seamlessly render a wide range of file types, including popular OpenDocument and Microsoft Office formats like DOCS, XLSX, and PPTX, as well as specialized CAD and graphic editor files like DWG, DXF, PSD, AI, and CDR.
$ dotnet add package GroupDocs.Viewer.CrossPlatform
Product Page | Docs | Demos | API Reference | Examples | Blog | Releases | Free Support | Temporary License
This is cross-platform version of GroupDocs.Viewer package. GroupDocs.Viewer.CrossPlatform is a class-library that enables you to build file viewer applications for mobile, web, and desktop platforms using C#, F#, or VB.NET. It supports rendering over 170 popular file formats in HTML, PNG, JPEG, and PDF. Our library is self-sufficient and doesn't depend on any third-party software, such as Microsoft Word, OpenOffice, and other office suites.
ASP.NET Core application with GroupDocs.Viewer.UI package.See the Features overview documentation topic for more details.
If you build applications for Linux and macOS, we recommend using this package instead GroupDocs.Viewer. GroupDocs.Viewer.CrossPlatform does not use on System.Drawing.Common as a graphical subsystem, which is only supported on Windows.
See the System requirements documentation topic for more details.
See the Supported file formats documentation topic for a complete list of supported formats.
To get started with GroupDocs.Viewer.CrossPlatfom first you have to install the package using the command for your tool that you can find at the beginning of this page.
You can run the following code snippets in C# to see how our library works. Also feel free to check out the GitHub Repository for other common use cases.
using GroupDocs.Viewer;
using GroupDocs.Viewer.Options;
// Instantiate viewer
using (var viewer = new Viewer("resume.pdf"))
{
// Set output HTML options, one file per page
var viewOptions = HtmlViewOptions.ForEmbeddedResources("page{0}.html");
// Render PDF to HTML with embedded resources
viewer.View(viewOptions);
}
using GroupDocs.Viewer;
using GroupDocs.Viewer.Options;
// Instantiate viewer
using (var viewer = new Viewer("solution.pptx"))
{
// Set output PDF options
var viewOptions = new PdfViewOptions("solution.pdf");
// Render PPTX to PDF
viewer.View(viewOptions);
}
using GroupDocs.Viewer;
using GroupDocs.Viewer.Options;
// Instantiate viewer
using (var viewer = new Viewer("flyer.docx"))
{
// Set output PDF options
var viewOptions = new PngViewOptions("page{0}.png");
// Render DOCX to PNG
viewer.View(viewOptions);
}
Our technical support is available to all users, including those evaluating our product. We offer assistance through our Free Support Forum and Paid Support Helpdesk. Let us know if you have any questions or issues, and we'll do our best to help you.
Product Page | Docs | Demos | API Reference | Examples | Blog | Releases | Free Support | Temporary License