Instructions

How to use Rotativa.io from different languages and frameworks

.Net Core

I’ve developed a library that lets you use rotativa.io to create PDF files using Razor templates without requiring you to reference Asp.Net Core libraries. This makes it suitable to be used in console applications or Azure Functions (since it uses a HTTP call to build the PDF it will work even if on a Consumption Plan).

Asp.Net Core

Creating PDF files in Asp.Net Core is now really easy with the Rotativa.io Asp.Net Core client. This means that now you can use Rotativa code on Linux! Yu won’t have any problems since all your code will do is call a HTTP API service.

HTTP API

Now you can use Rotativa.io to create PDF docs by making a POST HTTP request to one of our endpoints.

Asp.Net MVC

Using Rotativa.io is extremely easy and it will come natural to those familiar with Asp.Net MVC.

WordPress

Creating PDF files in WordPress is now really easy with the Rotativa.io Plugin. You will have no issues since all your website will do is call a HTTP API service, no need to install anything on your server, no need to have graphics libraries installed and no need to code.

PHP

You can now use Rotativa.io from PHP. We have developed a PHP helper class that you can download from here.

Asp.Net WebApi

Rotativa.io supports WebApi usage and in general usage outside of Asp.net MVC web app. As we will see later this feature can be used to build the PDF from Asp.net MVC too, in case you need to access directly either the pdf or the URL pointing to the PDF (stored on the cloud and accessible for 2 minutes).

NodeJs

Creating PDF files in Node.js using Rotativa.io is simple. You can either pass the service a URL or a HTML document. Making the call, using the request npm package, is this simple:

subscribe via RSS