Aspose.Pdf for .NET 8.4.0 Offers EPUB to PDF Conversion, Wordwrap Support in TextStamp, and Optimized Results

Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.Pdf for .NET logoWe are very much pleased to announce the release of Aspose.Pdf for .NET 8.4.0 which provides the long awaited feature that allows you to convert EPUB files to PDF format. With the release of this version, the TextStamp object supports wordwrap.

Aspose.Pdf for .NET has been capable of converting a particular PDF page to image format for some time. With this release, we have introduced the feature to export PDF pages to image format using MediaBox bounds. This feature is introduced in PNG, JPEG and TIFF devices. The following code snippet shows the steps to accomplish this requirement

Aspose.Pdf.Document pdf = new Aspose.Pdf.Document(@"c:\test.pdf");
using (FileStream imageStream = new FileStream(@"c:\result.jpg", FileMode.Create))
{
    Resolution res = new Resolution(300);
    JpegDevice jpeg_device = new JpegDevice(res);
    jpeg_device.CoordinateType = PageCoordinateType.MediaBox; // MediaBox
    jpeg_device.Process(pdf.Pages[1], imageStream);
}

The product is also optimized for better PDF to image conversion and the size of the output images is now smaller. Please download and evaluate the latest release of Aspose.Pdf for .NET 8.4.0.