I am using Rotativa to convert my HTML to PDF, I have a div that repeats itself n number of times and it has a table which can have n number of rows. I am trying to find a clean way to break the page at exact point that doesn't make half of div in one page and half in other. I have tried getting the row count and adding a page break to it after getting enough rows that can be visible in a single page without breaking the div into two pages, but that still doesn't help in some cases as the number of rows increases. And also page-break after repeating the div doesn't work. Can someone help me with allowing the page-break to work after a certain occurrence of divs.
Clean Page break with Rotativa pdf for asp.net MVC
909 Views Asked by Abhishek Mandloi At
1
There are 1 best solutions below
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in ASP.NET-MVC
- I have a problem outputing the roles on the page ListRoles.cshtml
- Dropdown list showing SQLServer2005SQLBrowserUser$DONSERVER instead of Active Directory group name in ASP.NET MVC C#
- Hosting ASP.NET MVC application on IIS web server using Windows 2019 server
- How to display only department fields associated with a selected department in student automation system?
- How to send select input data for form submission?
- Multi level project reference using dll
- How to upload file to Onedrive using ASP.NET MVC?
- ASP.NET MVC web app looping between fields only on some devices
- Is there any automatic job to load AD-groups?
- How to restrict admin js files to download
- Download PDF in ASP.NET MVC application
- How to add bootstrap theme/example into ASP.NET MVC 5?
- Web API works with Windows authentication enabled when consumed via Swagger but throws an unauthorized issue when accessed through web app
- ASP.Net Core 7.0 Web App (Model-View-Controller) ErrorViewModel OnGet OnPost do not get called or executed
- OAuth 2.0 keep getting Authorization has been denied for this request
Related Questions in ROTATIVA
- Rotativa PDF export taking significantly longer on Windows Server 2016 after recent update
- Generate PDF with Rotativa including charts not working
- How to use wkhtmltopdf Rotativa ViewAsPdf in Blazor Server
- How to configure Rotativa in .net 8.0 Web API to generate PDF and download file
- Rotativa.AspNetCore 1.3.2 is not working after deployment
- Rotativa pdf bottom position is wrong after upgrade visual studio 17.8
- Using Rotativa to export HTML into PDF file in ASP.NET Core MVC 7
- Rotativa Unable to load the model View when using ViewAsPdf
- Rotativa can't find ActionAsPdf: The type or namespace name 'ActionAsPdf' could not be found when using Rotativa.AspNetCore
- Getting ArgumentNullException: Value cannot be null. (Parameter 'RotativaPath') when Using Rotativa to export Html View to PDF
- Why the conversion from razor to pdf document doesnt appear the same as the website?
- How to Add Chart in PDF using .NET MVC
- How to Fix Data hidden in the header and footer section in the PDF generated by Rotativa?
- ASP.NET MVC Rotativa ViewAsPDF vastly different between debug and production
- Rotativa with Asp.net Core 6.0 not working, getting error : System.Exception: QWin32PrintEngine
Related Questions in PAGE-BREAK-INSIDE
- Give precedence to break-after: avoid in firefox
- Print issue - page breaks
- page-break-inside: avoid and display: table-row not working properly. Content appears distorted for each first item on each new page
- Printing table with large number of rows creates page break issue on safari for desktop and Ipad
- print ag-grid with ngx-print plugin, adding extra empty space inside table
- Dynamic page-breaks causing extremely large whitespace
- Prevent page breaks in puppeteer pdf
- How to remove extra borders in continues pages of HTML table in mpdf?
- prevent page-break when printing paragraph
- page break css for printing html page content not working in chrome
- Printing HTML tables with repeated header rows and non-breaking body rows
- DOMPDF Strange page-break inside a div
- How to avoid a page break between paragraph number and the paragraph itself?
- Fixed Header on every printed page and avoid page break inside in Footer
- PDF Printing with large text in a table cell spilling into th
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
At my job, when doing pdf (but not with Rotativa), we keep the available white space in the page in pixel and reduce what's left every time we add some lines. We check every time to see if there's enough space left to add the new div of lines based on the number of lines and if not, we put a page-break in the document.