Code Monkey home page Code Monkey logo

rotativa's People

Contributors

braincrumbz avatar danielkillyevo avatar emadb avatar martinobordin avatar martinpesek avatar webgio avatar yoyoys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rotativa's Issues

Header and Footer

Hi,

First off sorry if I'm missing something but I'm trying to work out if it is possible to get a header and footer on each page of the generated document, If this is an example would be greatly appreciated.

Thanks,

James Spencer

Blank PDF

I download your demo, run in windows xp sp3, Visual Web Developer 2010 Express, but the PDF is blank, but the file size is not zero.
Install from Nuget to a new project still same.
how to resolve this?

process not able to run on server

hi, the process is not able to run on server, but it works on host only.
what need to set in the server iis to let it work? I already give the network-service all the permission to the folder, but still not works.

Server Error

I am using Rotativa with ASP MVC 4. Works fine on localhost but when deployed on server through web deploy it stops working. Gives error when PDF generated :

Sorry, an error occurred while processing your request.

In my controller I am returning view as:

return new ViewAsPdf(labeldata)
{
FileName = "Test.pdf",
PageOrientation = Orientation.Portrait,
PageWidth = 101.6, // it's in millimeters
PageHeight = 152.4,
PageMargins = { Left = 0, Right = 0 }
};

Resulting pdf not matching browser print preview

I designed my html page using the browser print preview (tried and tested in multiple browsers), but the resulting pdf seems to make everything not related to percentages smaller. I've set the PageSize to A4. In the html I've tried to use pt, px, mm, cm for my static sizes - still same problem. It's as though every fixed value is somehow "zoomed" out on the produced pdf. E.g. 25cm height is percieved as 18-20cm height. Did I do anything wrong and do I have to "redesign" my page to fit the pdf output instead of the browser print output, or is there some option I've missed?

This image compare the result produced by Rotativa with the result from printing as pdf from Chrome.
indspilning i fuld skrm 25-09-2013 015051 bmp

And here is the code in my controller:

return new ActionAsPdf("UgeRapport", new { uge = uge }) 
                { 
                    FileName = "Rapport_Uge_" + uge + ".pdf", 
                    PageMargins = new Margins(2, 10, 10, 20),  
                    PageSize = Size.A4};

Thanks for a great plugin though :)

Best Regards

  • Nikolaj

Version not reliant on .exe file

Is there hope for a version that doesn't require execution of a .exe file, e.g. a version of Rotative that uses the .dll file instead?

The host chosen by my client doesn't allow execution of .exe files.

Rotativa.ActionAsPdf output from ASP.NET MVC4

Hi,

I have two separate web sites, both hosted on the same server.

One works perfectly fine and renders PDF's using Rotativa no problems.

The other simply returns the following text in the browser with no PDF being rendered "Rotativa.ActionAsPdf". Really weird...

  • We have the web.config key correctly pointing to the Rotativa path on both sites.
  • Both have anonymous authentication enabled. But the one that works has Windows Integrated Authentication and the broken one uses Windows Forms authentication as well. Not sure if this is related?
  • They both have the Rotativa folder included and the same version of the DLLs.

Any thoughts or ideas?

Thanks

Share hosting

I have a site in godaddy in shared hosting, and godaddy dont allow execute .exe files, I'm trying to store the Rotativa folder in my developer server and include into this proyect the reference of folder in my server developer, I dont know whats its wrong, any of you have the same problem

thanks for your time

ActionAsPdf renders login view

When I use ActionAsPdf in an MVC app with forms authentication enabled, I get the login screen rendered in my pdf.
new ActionAsPdf("Print"); // Renders login view
new ViewAsPdf("Print", model); // Renders correctly

No CSS formatting in generated PDF (works on localhost)

We have Rotativa working fine when running on localhost but when we deploy to our development server the PDF is successfully created from the view but all colour and formatting is lost?

We have checked and everything appears to have been deployed successfully.

Convert current HTML to PDF?

So I have a view with some dynamic HTML. The view pulls in a bunch of data and hides some of it (say it shows hotels, rentals, and shops; but only shows hotels at first and rentals and shops are hidden at first). Then you can hide or show combinations of that data (for instance, hide hotels, show rentals and shops). When using ActionAsPdf, it only grabs the view's initial state, meaning any changes the user made to make stuff hidden or shown doesn't get. In my example, this means it will always show hotels and never rentals or shops, regardless of which ones were hidden or shown when the action was called.

Is there a way to send the current HTML state to Rotativa? Basically I'm just looking for a way to emulate a browser's print preview functionality with PDFs.

Error 502 in Azure

I added the Rotativa package in my solution and worked perfectly in my local environment. I published the project in an Azure website, but the PDF generation gives me an error 502:

502 - Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.

This situation can easily be tested by this URL: http://fideli100test.azurewebsites.net/Vouchers/DetailsAsPDF/1001

Thank you.

Exception when deployed to server

Apologies if I'm being slow - I've incorporated Rotativa and it works on my dev machine but when I try to use it on the server I receive the below:

Server Error in '/' Application.

Unhandled Execution Error
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception:

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[Exception]
Rotativa.WkhtmltopdfDriver.Convert(String wkhtmltopdfPath, String switches, String html) +822
Rotativa.ViewAsPdf.CallTheDriver(ControllerContext context) +1027
Rotativa.AsPdfResultBase.BuildPdf(ControllerContext context) +201
Rotativa.AsPdfResultBase.ExecuteResult(ControllerContext context) +27
Castle.Proxies.ControllerActionInvokerProxy.InvokeActionResult_callback(ControllerContext controllerContext, ActionResult actionResult) +21
Castle.DynamicProxy.AbstractInvocation.Proceed() +69
Glimpse.Mvc3.Interceptor.InvokeActionResultInterceptor.Intercept(IInvocation invocation) +431
Castle.DynamicProxy.AbstractInvocation.Proceed() +204
System.Web.Mvc.<>c__DisplayClass1c.b__19() +33
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +613 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +263
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +729
System.Web.Mvc.Controller.ExecuteCore() +162
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +159
System.Web.Mvc.<>c__DisplayClassb.b__5() +62
System.Web.Mvc.Async.<>c__DisplayClass1.b__0() +15
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1656
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +540

Server is Server 2008 R2 and application is dotNet 4.5

Call to Rotativa is

return new ViewAsPdf("View", "~/Views/StaffExpenses/_ViewLayout.cshtml", claim)
{
PageSize = Size.A4,
PageOrientation = Orientation.Landscape,
PageMargins = {Left = 0, Right = 0, Top = 0, Bottom = 0}
};

Both Authenticated Users and the app pool have execute permissions on the files in the Rotativa folder which has deployed to the server with the application.

Project uses Windows Authentication

Return FileStreamResult

I'm wondering why there is no return type which inherits from FileStreamResult? I want to capture the generated PDF server side in order to attach it to an e-mail. The action itself returns a normal view, not a PDF, but it does send out an e-mail with the PDF attached.

New Options

I was trying to implement the new changes with options as properties. It doesn't seem to be capturing any of the properties other than the ones that are hard coded to grab. This line:FieldInfo[] fields = GetType().GetFields(); never seems to get any values in AsPdfResultBase.cs.

Any ideas?

ViewAsPdf won't render partials inside View

Hi, i'm trying to retrun a view as pdf using ViewAsPdf and passing the model, the pdf renders however my view has some partials inside that renders with some of the list inside the passed model, the ViewAsPdf won't render those.

thanks in advance.

My bad: i was using tabs with javascript

HTTPS

In RouteAsPdf and ActionAsPdf in GetUrl the url is hard coded to http://.

Please add the following to support https:

if (context.HttpContext.Request.IsSecureConnection)
{
url = String.Format("https://{0}{1}", context.HttpContext.Request.Url.Authority, actionUrl);
}

ViewAsPdf doesn't render images

I have a simple page with one image in it.
I've setting the image source with
img src="/Images/logonowweretalking.png"
And
img src="@Url.Content("
/Images/logonowweretalking.png")"
But it won't render in pdf when using ViewAsPdf. When using ActionAsPdf it renders fine.

Error 500 on production server

Hello,
I have deployed my web app to production IIS 7.5 that runs on virtual machine Windows 7, but I am unable to get pdf generated.

However, on my development env (VS2010 and dev web server) everything works fine. I have checked the list of running processes on virtual machine whether the wkhtmltopdf is running and it is. So, I guess there should be no problem in .net trust level or any other security issues. I keep getting the Error 500 page.

Please, can you help what could be possibly wrong. Is there anything special that needs to be set in Web.config?

Thank you in advance,
Caisi

UPDATE 1:
I found out that the issue is related to Url helper and its method Content. It seems that something is wrong in mapping the relative path to absolute path. Do you have any idea what is wrong?

UPDATE 2:
I've found a workaround for my problem. I wrapped all calls of method Url.Content into Server.MapPath, so in final I have to use ViewAsPdf and inside the Views I am using such notation i.e.

Images Broken on 1.6.1

I upgraded from 1.6.0 to 1.6.1 and images stopped showing up on exported PDFs.

Downgrading to 1.6.0 fixes the problem.

culture

It Works great,
But I have problem with cs-CZ letters. Is it possible to set some culture?
Thank you for your answer.

Problem is ONLY when I use ViewAsPdf(view, model)

When I use ActionAsPdf everything looks good.

Page size

Could you explain me please hot to set the page size? thanks.

ActionAsPdf renders login view in pdf - Different Issue

Had no problems until I upgraded to MVC5 using AspNet.Identity.

I can call the ActionResult and see the view with no problems. But when I call it with ActionAsPdf it renders the login view in the pdf file.

I've tried modifications to the Web.config file including changing:
authentication mode="None"
to
authentication mode="Forms"
and
modules
remove name="FormsAuthenticationModule"
modules
to
validation validateIntegratedModeConfiguration="false"
modules runAllManagedModulesForAllRequests="true"
modules
with no success.

Is Rotativa just not compatible with MVC5 yet?

Problems running Rotativa on IIS6

I'm trying to run my application with IIS6, but I'm getting the Message "Access Denied"

There is any special permission to execute rotativa?

Here is my excepetion:

Access is denied

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ComponentModel.Win32Exception: Access is denied

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[Win32Exception (0x80004005): Access is denied]
System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) +2161
System.Diagnostics.Process.Start() +150
Rotativa.WkhtmltopdfDriver.Convert(String wkhtmltopdfPath, String switches, String html) +227
Rotativa.ViewAsPdf.CallTheDriver(ControllerContext context) +803
Rotativa.AsPdfResultBase.BuildPdf(ControllerContext context) +130
Rotativa.AsPdfResultBase.ExecuteResult(ControllerContext context) +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
System.Web.Mvc.<>c__DisplayClass1c.b__19() +23
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +260 System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +177
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
System.Web.Mvc.Controller.ExecuteCore() +116
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
System.Web.Mvc.<>c__DisplayClassb.b__5() +37
System.Web.Mvc.Async.<>c__DisplayClass1.b__0() +21
System.Web.Mvc.Async.<>c__DisplayClass81.<BeginSynchronous>b__7(IAsyncResult _) +12 System.Web.Mvc.Async.WrappedAsyncResult1.End() +62
System.Web.Mvc.<>c__DisplayClasse.b__d() +50
System.Web.Mvc.SecurityUtil.b__0(Action f) +7
System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8968077
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184

Issue with Kendo graphs - is it SVG related?

Hi,

I have a view that generates a kendo graph. The view looks great. But when I call the same view through Rotativa to convert to a pdf, the graph is all squashed up and only shows half of it. The labels are not aligned properly.

What can i do to fix?

Rotativa on AzureWebsites

Hi! Great Package, I loved it!

However I tried Rotativa in Windows Azure Websites and the error "502 - Web server received an invalid response while acting as a gateway or proxy server." popped up after a lag of about 40-60 seconds when trying to make a PDF from a page.

Locally it works fine

Have you tried this before and is it possible to run Rotativa in Azure Website?

Cheers!

Images Not Showing

I'm having trouble getting a simple image to show up in the generated pdf, here is my view and I am using ViewAsPdf()

Are there any gotchas or requirements when including an image in the view/pdf?

<h2>test</h2>

<div id="proof-image">
    <img src="/action-that-generates-an-image" />
</div>

Error on web server when outputting large PDF files

Hello,

I have implemented Rotativa 1.6.1 with great success for an MVC4 web application running on IIS6 under Windows Server 2003. Exporting works great for a majority of the pages via the ViewAsPdf method. However, when trying to export a large html document to PDF, I get the following exception:

Rotativa.WkhtmltopdfDriver.Convert(String wkhtmltopdfPath, String switches, String html) +575
Rotativa.ViewAsPdf.CallTheDriver(ControllerContext context) +809
Rotativa.AsPdfResultBase.BuildPdf(ControllerContext context) +130
Rotativa.AsPdfResultBase.ExecuteResult(ControllerContext context) +19

I have tried running wkhtmltopdf.exe on the command line, and no errors occur. I can export the same html document on my local machine under VS2013 running under IIS Express. The document produced is approximately 316KB, so I wouldn't think this exceeds the web server's download limit per request.

Since the problem on occurs when running on the web server, I can only assume it's an issue with Rotativa or with a configuration/security issue in IIS6 (most likely the latter). Any assistance or a point in the right direction would be greatly appreciated.

Cut table rows

Is possible to make changes to the page's layout so it didn't cut the rows in a table that is longer than a page??

What size should a picture be for full size in A4?

What size in pixels should a picture that i whant in full size on A4 PDF ?

I createing a document storage service that i whant to give the user a PDF with the documents in, one document is a A4 that been scan with document scanner and saved like a picture on the server.

I got 100% to work fine but i have documents that not are A4 format so should be nice to have the size to do some check that if it should be 100% or not.

404 error

Rotativa works perfectly for my asp.net application on my local machine and on my staging server (IIS 6, Windows Server 2003 R2) but fails on production server (IIS 7.5, Windows Server 2008) Would there be any reason why Rotativa would generate a pdf just containing the text "404 page not found". The url is valid and resolves correctly when entered directly into the address bar? External urls like that of Google works fine. I'm sorry this is a bit vague. Not quite sure where to start with diagnosing this. I've tried using ActionAsPdf, UrlAsPdf with no success.

504 Gateway Time-out

I have developed a site using Rotativa and it works perfectly on my development machine.

However, when I upload it to the live version of the site on shared hosting, the PDF generation returns the error '504 Gateway Timeout'.

From what I can tell, the problem seems to occur within WkhtmltopdfDriver.cs and the following function.

private static byte[] Convert(string wkhtmltopdfPath, string switches, string html)

I think I've narrowed it down to the point at which the code reads the output generated from the process that calls wkhtmltopdf.exe.

while ((read = sOut.Read(buffer, 0, buffer.Length)) > 0)

If anyone has any suggestions, I'd be most grateful.

IIS 8 compatability?

Is Rotativa 1.6.1 tested on IIS 8?, i am facing some problems with images and css in ViewAsPdf, and exception with ActionAsPdf

Localized the exeption in ActionAsPdf coming from wkhtmltopdf.exe with ReturnCode 1
Qt: Could not initialize OLE (error 80070005).... access denied.

I can execute the wkhtmtopdf.exe with pdf output from console as the IIS user with no problems.

no text

first i would like to thanks for this great library and the second is when i try to convert a view with mvc4 razor rotative make de converse to pdf of the design but not the content of the page
this is the result
-original HTML with the content and design http://i.imgur.com/q3UJ9.jpg
-pdf convert with Rotativ http://i.imgur.com/z0Y14.jpg

MVC 4 with Custom View Engine

I'm having a strange issue. I'm using MVC 4 and a custom view engine. Rotativa is throwing on a "missing view" as indicated by source code: https://github.com/webgio/Rotativa/blob/master/Rotativa/ViewAsPdf.cs#L95.

The problem is that it's searching the default mvc locations for the view and not the ones specified by the custom view engine. The custom view engine has been in place for a while and works for other scenarios.

In fact, running https://github.com/webgio/Rotativa/blob/master/Rotativa/ViewAsPdf.cs#L69 in my own code finds the view as expected.

My best guess is that Rotativa is compiled against MVC3 and the static is somehow returning a different instance.

Before I continue investigating, I was wondering if you had seen this issue before or had any suggestions.

Thanks.

Problem with Azure

It works fine on my development server when I run from Visual Studio 2012, generates PDF from a View. However, when I publish to Azure and try to return PDF, it just says "Waiting for oppradovi.azurewebsites.net...". Everything else works just fine on Azure, maybe it's an issue with code execution permissions once it's on Internet server and not on local dev server.

Maybe it's worth mentioning that I'm on a free trial Azure account which could have caps on CPU utilization. It's not crucial part of my application, but it would be nice to get it working :)

Html images and PartialViewAsPdf

Hi. I'm using Rotativa 1.6.1 (downloaded from NuGet). Trying to create a pdf from a MVC 4 partial view contains an image, but when pdf created no image is found.

This is my controller code:

PartialViewAsPdf p = new PartialViewAsPdf();
p.PageSize = Size.A4;
p.PageOrientation = Orientation.Landscape;
p.PageMargins = new Margins { Left = 10, Right = 10, Top = 10, Bottom = 10 };
p.Model = rdarequest;
p.FileName = DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".pdf";
p.ViewName = "Report";
p.IsBackgroundDisabled = false;
p.IsLowQuality = false;
byte[] res = p.BuildPdf(this.ControllerContext);

This the partial view code (partial code):
[...]

My logo

[...]

How can solve it?

Images "Ghosting" in 1.6.1

I upgraded, to fix a page break issue in wkhtmltopdf, to 1.6.1, and my images are "ghosting". I rolled back to 1.5.0 and the problem went away (but page breaks are broken again).

Looks just like in this wkhtmltopodf bug
http://code.google.com/p/wkhtmltopdf/issues/detail?id=788

They claim it's fixed in the tip. (I tried manually updating to the latest stable release and it still occurred)

Oddly the issue only occurs on our QA server, not our DEV server.

Rotativa and WebAPI

Hi, I want to use BuildPdf method inside a WebAPI action. I want to use BuildPdf to send some PDF mails. The BuildPdf method requires the Mvc.Context and not the ApiControllerContext. Somebody know if is it possible to used in WebApi?

Paging

How would i show page numbers on my pdfs

Error on Internet, works fine on Stage Server

System.Exception
Error: Failed loading page http://xxx.xxx.com/Event/Details/72 (sometimes it will work just to ignore this error with --load-error-handling ignore)

When I deploy to our stage server, everything works fine. When I deploy the same code to the production server I get this error. Is there something I forgot to configure or am missing?

I get the same error in production when I try to run from a command line.

CSS with PartialViewAsPdf

I am using C# with MVC3 Razor

I really like the Rotativa app. The one thing I have noticed is if I use PartiaViewAsPdf to create a Pdf it does not use the CSS Style sheet for the Partial View. If I change the call to ViewAsPdf and leave everything else as is, then it uses the CSS Style Sheet. I also noticed that in PartialViewAsPdf that it stops creating Pdf pages at the end of the data but again if I change it to ViewAsPDF it creates extra blank pages. The code call looks like this

public ActionResult PrintAll ( ID, ID2)
{
var model = new getmodel(ID);
return new PartialViewAsPdf("Partial/View1", model)
{
//Page Size code,
//Orientation code,
//Margin code
}
}

public ActionResult PrintAll ( ID, ID2)
{
var model = new getmodel(ID);
return new ViewAsPdf("Partial/View1", model)
{
//Page Size code,
//Orientation code,
//Margin code
}
}

Special characters in text rendering as codes

Hi ,

I have a some special character in text like '£' or bullet points. These are values entered by users in a textarea field. I'm displaying that text in a label. Its displaying fine in the view but when exporting that to pdf its converting the special characters to some codes in the pdf.

Not sure if this is related to wkhtmltopdf or something related to encoding which am missing. Any suggestions please?

eg-

text displayed in view:
1st supervisor x 1 @ £1000 Provisional 2nd supervisor x 2 @ £500 each 2nd Supervisor DBA x 1 @ £500

Text rendered inside pdf: (without spaces inbetween the codes)
1st supervisor x 1 @ & # 163 ;1000 Provisional 2nd supervisor x 2 @ & # 163 ;500 each 2nd Supervisor DBA x 1 @ & # 163 ;500

Thanks,
Sai

Page Breaks (page-break-*) are not applied

Tried to print a page to PDF using the css:

.page-breaker {
    display: block;
    clear: both; 
    page-break-after: always;
}

but the page breaks were not applied in the PDF.
Looks like an issue with the version of the wkhtmltopdf.exe.
Once I updated it to current version (wkhtmltox-0.11.0_rc1), the page breaks were working fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.