webgio / Rotativa

Rotativa, /rota'tiva/. Make Pdf from Asp.Net MVC. Available on Nuget https://www.nuget.org/packages/Rotativa
http://letsfollowtheyellowbrickroad.blogspot.it/search/label/Rotativa
MIT License
621 stars 223 forks source link

ViewAsPdf only generates one page #146

Open markarmitage opened 7 years ago

markarmitage commented 7 years ago

Hi, I'm using ViewAsPdf to create a pdf to download and this creates the pdf and allows download however it only generates a pdf with one page of data, the first page. If I generate as a file (using ViewAsPdf) and attach to an email the pdf contains all expected pages.

The code I am using is very basic: var pdfViewModel = getPdfViewModel();

        if(pdfViewModel != null)
        {
            return new ViewAsPdf("pdf", pdfViewModel)
            {
                FileName = "my.pdf"
            };
        }

Any thoughts greatly appreciated.

Thanks, Mark

Kyrie24 commented 7 years ago

I know this is over a year old, but this might happen if the rendered view has containers with overflow-y:auto and the likes