Products Technologies Demo Docs Blog Support Company

New ReportingCloud Endpoint: List Available Fonts

We just rolled out a new Web API endpoint which returns available font names that can be used to create and merge templates for merge processes with ReportingCloud. https://api.reporting.cloud/v1/fonts/list The cross-browser HTML5-based template editor provides fonts that can be used to design merge templates. But ReportingCloud also provides a functionality to upload MS Word documents in standard formats such as RTF, DOC, and DOCX. In order to ensure that only supported fonts are used, this…

New ReportingCloud Endpoint: List Available Fonts

We just rolled out a new Web API endpoint which returns available font names that can be used to create and merge templates for merge processes with ReportingCloud.

https://api.reporting.cloud/v1/fonts/list

The cross-browser HTML5-based template editor provides fonts that can be used to design merge templates. But ReportingCloud also provides a functionality to upload MS Word documents in standard formats such as RTF, DOC, and DOCX. In order to ensure that only supported fonts are used, this new endpoint can be used to retrieve this list.

The following curl call shows the usage of this endpoint:

curl -u username:password \
  -X GET "https://api.reporting.cloud/v1/fonts/list

On success, it returns an array of available font names:

[
  "Arial",
  "Times New Roman",
  "Segoe UI"
]

The .NET wrapper for ReportingCloud has been extended with the ListFonts method:

using System;
using System.Collections.Generic;
using TXTextControl.ReportingCloud;

class RCSamples
{
    public static void ListFonts()
    {
        ReportingCloud rc = new ReportingCloud(
            "username",
            "password",
            new Uri("https://api.reporting.cloud"));

        // list all templates
        string[] fonts = rc.ListFonts();

        foreach (string font in fonts)
        {
            Console.WriteLine(font);
        }
    }
}

Test this on your own and create a trial account today.

Happy coding!

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Cloud

Are we moving to the cloud? This question is changing from "if" to "when" and "how". Text Control ReportingCloud brings complete reporting functionality to the cloud so all developers can use it, irrespective of the platform or language they're using. Its highly RESTful API can be used to merge Microsoft Word compatible templates with JSON data from all clients including .NET, Javascript, PHP, Node.JS, jQuery, Ruby, Python, Android, Java and iOS.

See Cloud products

Related Posts

CloudReportingReportingCloud

Proofing Tools Available As ReportingCloud Web API Endpoints

We just rolled out 3 new ReportingCloud endpoints to integrate spell checking functionality to your cloud-based applications in more than fifty languages.


CloudReportingGoogle Fonts

All Google Fonts Now Available in ReportingCloud

Making the web more beautiful, fast, and open through great typography. This is the motto of Google Fonts. The advantage of ReportingCloud is a consistent rendering of documents.


CloudReportingReportingCloud

New ReportingCloud MergeSettings Option: Merge HTML Content into Merge Fields

One of the most requested features for ReportingCloud is a way to merge formatted content into merge fields. We have added this feature to the API and rolled it out last weekend. The MergeSettings…


CloudReportingReportingCloud

What Can You Do with the ReportingCloud RESTful Service?

The RESTful web service Text Control ReportingCloud is a Web API powered reporting platform that provides the mail merge and reporting functionality of the powerful .NET component TX Text Control.…


CloudReportingReportingCloud

Render Document Pages As Images Using the ReportingCloud REST Web API

ReportingCloud is a Web API powered reporting platform to create MS Word compatible reports in the cloud using a REST web service. The Web API also supports rendering document pages to a variety…