andyhutch77 / MvcRazorToPdf

Create pdf documents within an asp .net mvc project by generating your views as normal but returning a PdfActionResult. This converts regular produced razor/html to pdf documents in the browser using the iTextXmlWorker.
125 stars 105 forks source link

When content of view page get bigger then pdf show only first page #5

Closed PrashantDtatir closed 10 years ago

PrashantDtatir commented 10 years ago

When content of view page get bigger then pdf show only first page

nikitesh commented 10 years ago

Oh interesting issue. what was the maximum number of pages you could display?? This issue might be because of itextsharp. It must be truncating the content. Check this answer on stackoverflow http://stackoverflow.com/questions/14339266/pdf-size-maximum-limit-in-itextsharp

andyhutch77 commented 10 years ago

Sorry for the delay, will take a look when I get a chance. Really been short on time at the moment.

southernfellow commented 10 years ago

I've just tested my html and the demo site renders it okay, I get three pages. I'd be quite happy to get the source down and take a look but if I could get a pointer where to start that'd be great!

andyhutch77 commented 10 years ago

@southernfellow @PrashantDtatir Hi, this can happen when new pages aren't specified. You can resolve it by using css page-breaks

ElanHasson commented 10 years ago

I wasn't able to reproduce this. Can you provide code & PDF?

Your question was answered on Stackoverflow.. can this be closed?

southernfellow commented 10 years ago

Yep, sorry. css page breaks seem to solve this for me.

PrashantDtatir commented 10 years ago

i was displaying 5-6 pages . when i used another version of itext it solved my problem Thanks for replying

On Mon, Oct 13, 2014 at 2:53 PM, southernfellow notifications@github.com wrote:

Yep, sorry. css page breaks seem to solve this for me.

— Reply to this email directly or view it on GitHub https://github.com/andyhutch77/MvcRazorToPdf/issues/5#issuecomment-58866543 .