Questions tagged [rotativa]

Rotativa is an ASP.NET MVC library providing a means to render HTML to PDF from an MVC Controller.

Rotativa is an ASP.NET MVC library providing a means to render HTML to PDF from an MVC Controller. Rotativa is based on wkhtmltopdf. It can be easy integrated in an ASP.Net MVC project, providing methods to return the views converted to pdf as a simple MVC project returns the views as plain HTML.

272 questions
36
votes
7 answers

Rotativa PDF generation working locally but not on IIS 7

I have an ASP.NET MVC 5 application. It has a simple form and when the user submits it, the form is stored in the cache and then another controller action is called, this action will return the model as a view as a PDF. I have no need to save it…
Robin
  • 2,704
  • 7
  • 30
  • 47
19
votes
2 answers

Azure websites and wkhtmltopdf

So after beginning my azure websites-adventure, I have been encountering disappointment after disappointment to the point of 'almost' regretting taking the azure route..the latest: my app uses wkhtmltopdf(Rotativa) for all its PDF generation. And as…
17
votes
5 answers

How to display page breaks in PDF generated by Rotativa

In my ASP.NET MVC 4 app, I have an index view that has several partial views embedded in it. I installed latest version 1.6.1 of Rotativa via NuGet. Now I can print the index page to a PDF using Rotativa. I would like to have a page break in the PDF…
nam
  • 21,967
  • 37
  • 158
  • 332
14
votes
5 answers

Why does Rotativa always generate my login page? Why is it slow?

I was using this Rotativa 1.6.4 code example to generate a PDF from a page in my .NET MVC 5 app. public ActionResult PrintIndex() { var a = new ActionAsPdf("Index", new { name = "Giorgio" }) { FileName = "Test.pdf" }; a.Cookies =…
Jess
  • 23,901
  • 21
  • 124
  • 145
13
votes
5 answers

Rotativa and Bootstrap Grid Styling

I am working on an ASP.NET MVC 5 project and using Rotativa to generate PDF documents from Razor views. I can't seem to get Rotativa to render the the view properly using Bootstrap styling. I'm trying to style the view using the simple grid layout…
12
votes
4 answers

Rotativa ViewAsPDF CSS Sizing / Dimensions

I am rendering an HTML View in ASP.Net MVC to PDF using Rotativa ViewAsPdf method. I am setting the ouput to be of A4 Size, Portrait and no margins, by setting: new ViewAsPdf(MVCCfpFormatter.Members.Views.FlightPlansFullPagePrint, model) …
Mark Cassar
  • 1,842
  • 4
  • 20
  • 27
10
votes
5 answers

Rotativa MVC not loading CSS or Images on PDF

I have a action which works well ( loads all images and CSS) as a normal action but when I use Rotativa.MVC.ViewAsPdf to produce a PDF it don't load the CSS. and the application doesn't show any errors public ActionResult…
LeBlues
  • 305
  • 2
  • 5
  • 20
10
votes
4 answers

How to save Rotativa PDF on server

I am using Rotativa to generate PDF in my "MVC" application. How can I save Rotativa PDF? I need to save the document on a server after all the process is completed. Code below: public ActionResult PRVRequestPdf(string refnum,string emid) { var…
user3778485
  • 101
  • 1
  • 1
  • 4
9
votes
7 answers

Rotativa / Wkhtmltopdf images not displaying

I am currently creating an MVC 4 web application. I have an action that has a base background image which is always the same then an arrow image which changes in degrees depending on the information that is collected within the action. I call this…
user1866606
  • 113
  • 1
  • 1
  • 5
8
votes
4 answers

Rotativa - ViewAspdf does not work on server

I know that this topic has been discuss on several articles, but none of the solution help me. I have this action: public ActionResult DownloadViewPDF(string userId) { var model = db.MyCvs.FirstOrDefault(u => u.UserId ==…
Lucian Bumb
  • 2,821
  • 5
  • 26
  • 39
8
votes
2 answers

Rotativa, ABCPdf and EO.Pdf don't work in Azure WEBSITES and I don't want to upgrade to Azure "Cloudapp"

Given the circunstances (take them as a fact): 1) Rotativa PDF (https://github.com/webgio/Rotativa) uses an exe for creating PDFs, so it doesn't work on azure websites (no permission to execute that exe) 2) ABCPdf has the same problem 3) EO.Pdf has…
sports
  • 7,851
  • 14
  • 72
  • 129
7
votes
1 answer

Display dynamic header using Rotativa pdf in MVC

I wanted to print header data which are dynamic and will come from controller. So how can I display that dynamic data in header using Rotativa pdf. My header data include Name, Address, Contact info and other additional information, which are…
Herin
  • 704
  • 3
  • 18
  • 34
7
votes
5 answers

Displaying headers and footers in a PDF generated by Rotativa

I'm trying to specify headers and footers in a PDF generated by Rotativa library. As the author answered here it should be possible using CSS (described here). However, I'm not able to do this. I have a stylesheet loaded in the meta tag:
bpiec
  • 1,561
  • 3
  • 23
  • 38
6
votes
0 answers

Rotativa ActionAsPdf with Multi-Col Newpaper layout

Using Rotativa 1.6.3 in MVC 6 to generate PDF from View using ActionAsPdf. The intention is to generate a Newspaper style report using CSS3 multi-col, this works using the print function in chrome (see image desired output) I have tried to use a…
user2668812
  • 417
  • 6
  • 16
6
votes
1 answer

Rotativa - Strange Header Output

I am trying to fix an issue where the table header in my HTML is not rendering correctly on subsequent pages. Any ideas on how to fix this issue? The header …
Slinky
  • 5,662
  • 14
  • 76
  • 130
1
2 3
18 19