Aspose.Imaging.Pdf.Adapter Combines 2 Aspose products Aspose.Imaging and Aspose.Pdf, this allows to use the functions of both libraries as a single whole and expand conversion between formats. Formats emf, wmf, cdr, psd, tiff, webp etc. can now be converted to formats such as pdf (with more advanced settings), docx, xlsx, html. PDF format can be converted to all formats supported by Imaging, for example Emf, Wmf, J2k, Webp etc.
$ dotnet add package Aspose.Imaging.Pdf.AdapterAspose.Imaging.Pdf.Adapter for .NET Combines 2 Aspose products Aspose.Imaging for .NET and Aspose.Pdf for .NET, this allows you to use the functions of both libraries as a single whole and expand conversion between formats. This adapter supports conversion emf, wmf, cdr, psd, tiff, webp, etc. formats to formats supported by the Aspose.Pdf library, such as pdf (with more advanced settings), docx, xlsx, html, pptx. And also conversion PDF format to all formats supported by the Aspose.Imaging library, such as Emf, Wmf, J2k, Webp, Tiff, etc.
Aspose.Imaging.Pdf.Adapter for .NET can be used to develop applications on Windows Desktop (x86, x64), Windows Server (x86, x64), Windows Azure, Windows Embedded (CE 6.0 R2), as well as Linux x64. The supported platforms include .Net Core 3.1, .Net6.0, .Net7.0, .Net8.0.
Upadted Aspose.Imaging to version 25.12+ Updated Aspose.Pdf to version 25.11+
Are you ready to give Aspose.Imaging.Pdf.Adapter for .NET a try? Simply execute
Install-Package Aspose.Imaging.Pdf.Adapter
from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.Imaging.Pdf.Adapter for .NET and want to upgrade the version, please execute
Update-Package Aspose.Imaging.Pdf.Adapter
to get the latest version.
using Aspose.Imaging.ImageOptions;
using Aspose.Imaging.Pdf.Adapter;
using Aspose.Imaging.Pdf.Adapter.ImageOptions;
using Aspose.Pdf;
// Register adapter - must be called once to initialize the library
// it is possible not to explicitly call registration if there were previous calls
// PdfLoadOptions.Create, ImageOptionsExt
PdfImage.Register();
using var image = Aspose.Imaging.Image.Load(@"example.cdr");
image.Save("result.pdf", new ImageOptionsExt<PdfSaveOptionsExt>()
{
SaveOptions = new PdfSaveOptionsExt() {FormatConversionOptions = new PdfFormatConversionOptions(PdfFormat.PDF_A_1A)},
VectorRasterizationOptions = new CdrRasterizationOptions()
{
PageSize = image.Size
}
});
using Aspose.Imaging.ImageOptions;
using Aspose.Imaging.Pdf.Adapter;
using Aspose.Imaging.Pdf.Adapter.ImageOptions;
using Aspose.Pdf;
// Register adapter - must be called once to initialize the library
// it is possible not to explicitly call registration if there were previous calls
// PdfLoadOptions.Create, ImageOptionsExt
PdfImage.Register();
using var image = Aspose.Imaging.Image.Load(@"example.cdr");
image.Save(@"result.docx", new ImageOptionsExt<DocSaveOptions>
{
SaveOptions = new DocSaveOptions
{
Format = DocSaveOptions.DocFormat.DocX
},
VectorRasterizationOptions = new CdrRasterizationOptions
{
PageSize = image.Size
}
});using Aspose.Imaging.ImageOptions;
using Aspose.Imaging.Pdf.Adapter;
// Register adapter - must be called once to initialize the library
// it is possible not to explicitly call registration if there were previous calls
// PdfLoadOptions.Create, ImageOptionsExt
PdfImage.Register();
using var image = Aspose.Imaging.Image.Load("example.pdf"));
image.Save("result.webp", new WebPOptions());