The GroupDocs.Conversion for .NET API now supports font format conversion, allowing developers to convert font files from one format to another, such as CFF to TTF.
1. Import the necessary namespaces:
using GroupDocs.Conversion;
using GroupDocs.Conversion.FileTypes;
using GroupDocs.Conversion.Options.Convert;
2. Create a new Converter object:
using (Converter converter = new Converter("Lato-Regular.cff"))
3. Create a new FontConvertOptions object and set the Format property to the desired output format:
var options = new FontConvertOptions
{
Format = FontFileType.Ttf
};
4. Convert the font file using the Convert() method:
converter.Convert("Lato-Regular.ttf", options);
This will create a new font file in the specified output format.
Font Converter App C# Code* for CFF to TTF Conversion
using GroupDocs.Conversion;
using GroupDocs.Conversion.FileTypes;
using GroupDocs.Conversion.Options.Convert;
// Load the source font file
using (Converter converter = new Converter("Lato-Regular.cff"))
{
// Set the convert options
var options = new FontConvertOptions
{
Format = FontFileType.Ttf
};
// Convert to TTF format
converter.Convert("Lato-Regular.ttf", options);
}
*source
The the API offers improved conversions from ICO format, resulting in higher quality output files.
Improved Spreadsheet to Word Conversions
The API to convert the spreadsheet to wordprocessing document has been approved, resulting in more accurate and complete output files.
This release of the API offers improved logging during conversion, providing developers with more detailed information about the conversion process.
Improved PDF to Image Converter API
We have fixed an issue with PDF to image conversion, resulting in higher quality output files.
Improved PDF to PNG Conversion
An improvement has been made in the API so it no longer crashes when converting particular PDF files to PNG files.
Improved Word to PDF Conversion via API
Within the API an issue has been fixed that used to bug App developpers when converting Word to PDF. This bug has now been resolved which results in higher quality output files.
For a complete list of features, enhancements, and bug fixes in this release please visit, GroupDocs.Conversion for .NET 23.1.