rotativa

Rotativa ActionAsPdf() Very Slow

时光毁灭记忆、已成空白 提交于 2020-01-02 07:02:41
问题 Using Rotativa 1.6.4 from NuGet and have noticed the following issue using the code below. ActionAsPdf hangs randomly for indeterminate amount of time. Code below that is hanging: var pdfResult = new ActionAsPdf("Report", new {id = Request.Params["id"]}) { Cookies = cookieCollection, FormsAuthenticationCookieName = FormsAuthentication.FormsCookieName, CustomSwitches = "--load-error-handling ignore" }; Background info that may help: The customSwitches is in use to ignore a documented issue

C# ASP.NET MVC Create PDF from view Rotativa or iTextSharp? [closed]

人盡茶涼 提交于 2019-12-25 05:13:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I am very unfamiliar with generating PDF from multiple forms. In fact, I've never generated a PDF using any kind of programming language. Now I have been trying 2 different methods for what I want to do. Unfortunately after a few days I still haven't found out how to do this. I have multiple forms with data pre

Rotativa.NetCore Could not load type 'Microsoft.AspNetCore.Builder.CookieAuthenticationOptions'

╄→гoц情女王★ 提交于 2019-12-24 06:09:03
问题 I am using Rotativa.NetCore on a .Net CORE 2.0 (latest version and etc) and I am getting the following error: An unhandled exception occurred while processing the request. TypeLoadException: Could not load type 'Microsoft.AspNetCore.Builder.CookieAuthenticationOptions' from assembly 'Microsoft.AspNetCore.Authentication.Cookies, Version=2.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. Any suggestions? 回答1: There's code to update Rotativa.NetCore from .Net Core 1 to .Net Core 2.0

Rotativa.NetCore Could not load type 'Microsoft.AspNetCore.Builder.CookieAuthenticationOptions'

痴心易碎 提交于 2019-12-24 06:08:03
问题 I am using Rotativa.NetCore on a .Net CORE 2.0 (latest version and etc) and I am getting the following error: An unhandled exception occurred while processing the request. TypeLoadException: Could not load type 'Microsoft.AspNetCore.Builder.CookieAuthenticationOptions' from assembly 'Microsoft.AspNetCore.Authentication.Cookies, Version=2.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. Any suggestions? 回答1: There's code to update Rotativa.NetCore from .Net Core 1 to .Net Core 2.0

Cannot print Asp.net MVC 5.2.2 view in Rotativa.MVC 2.0.3

泄露秘密 提交于 2019-12-24 03:30:26
问题 I have a Asp.net MVC 5.2.2 web application where i have Rotativa.MVC 2.0.3 installed via nuget package. I am using Visual Studio Community 2013 Update 4 on Windows 8.1 Pro 64-bit/8GB Ram. My view displays data from SQL Server Database and in addition to that it also displays some data in graphs using amcharts 3.13.3. I get the following error when i call the action from the view: [Exception: QFont::setPixelSize: Pixel size <= 0 (0) QFont::setPixelSize: Pixel size <= 0 (0) QFont::setPixelSize:

Rotativa Pdf generation does not respect HTML character spacing

こ雲淡風輕ζ 提交于 2019-12-23 23:33:51
问题 I am converting from MVC HTML to Pdf using Rotativa. In HTML everything looks good, but in Pdf format, the characters spacing is not well formatted, as it is too little. This reduces the readability of the documents considerably. In the following image is a string in HTML: and here is the same string generated with Rotativa: I have tried to increase the character spacing from css, but when I changed it to 1px , on the HTML side everything looks even better, but in Pdf all the strings mess-up

Azure websites and wkhtmltopdf

主宰稳场 提交于 2019-12-18 12:18:33
问题 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 I discovered now during my staging testing...that doesnt work. According to most info on the web, azure websites cannot run .exe's. However, most info I've seen is by now 2 years old and I know Azure development is going fast. Is there by now a

Rotativa PDF generation working locally but not on IIS 7

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 11:41:42
问题 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 locally, just to show it in the browser so that the user can download it. There is no need for a database either, that is why I store the model in the cache. Locally, on Visual studio 2013, it works fine. But when I publish it to IIS 7 I get an

Preview pdf instead of download using Rotativa

喜你入骨 提交于 2019-12-12 16:24:46
问题 I am trying to print .html file as .pdf file using Rotativa. I have tried this code: return new ActionAsPdf("Index") { FileName = "Product.pdf" }; My index action is here: public ActionResult Index() { return View(db.Products.ToList()); } But, the generated .pdf file is downloaded instead of previewed. I don't want to download it. I want the preview and then print it. 回答1: I got the answer.I need to remove the FileName attribute.If I want to download it, I need to add the FileName attribute

Rotativa and wkhtmltopdf no CSS or images on iis6 over HTTPS, but fine on HTTP

我是研究僧i 提交于 2019-12-12 10:05:42
问题 Using Rotativa, a .net wrapper for wkhtmltopdf. I can not get CSS or Images to render in a PDF if I connect Via HTTPS. I have previously set this up on 2008r2 iis7 server with HTTPS(SSL) I did have simular trouble with css & webfonts, but I just changed all the paths to absolute paths and it worked. This job is deployed on ii6 windows 2003 server. Yesterday it was just producing "An unhandled exception has occurred." when ussing HTTPS so I upgraded wkhtmltopdf to V 0.12.0, now the PDF will