I'm using Rotativa to generate a view as PDF and it generates correctly.
However some of the html elements such as div
have a border and the problem here is that I see it cut in half of that place in the first page of PDF and half of that placed in the second page in bad view.
Also I can't execute jquery scripts in this view (to handle my problem), when I run that view in general (without using ViewAsPdf
) my scripts work fine, but with using ViewAsPdf
it doesn't work.
I've checked out this question as a prior research: Rotativa ViewAsPdf not executing jquery
var z = parseInt(res);
$(".softwares-info-block[data-val-id=" + z + "]").addClass("margin-top-box");
// it doesn't work (works fine without using rotativa)
$(".softwares-info-block[data-val-id = 10 ]").addClass("margin-top-box");
// it works fine (works fine when using rotativa, tried this in manually to check my scripts)