PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Mar 29, 2024 6:49 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Aug 24, 2017 3:31 am 
Offline

Joined: Thu Aug 24, 2017 3:07 am
Posts: 1
I am using..
PdfDocument pdf = PdfGenerator.GeneratePdf(body, PageSize.A4);
and i have the "page-break-inside" css style (as per https://github.com/ArthurHub/HTML-Renderer/pull/41), but it is still splitting lines.
<div style="page-break-inside: avoid;" >
I have attached some sample images. I have added a dashed border to the html body to help demonstrate is perimeter.

Here is a snippet of my html.
<div class="payment-wrapper" style="page-break-inside: avoid;" >
<h4>{DueDateLabel} {InvoiceDueDate}</h4>
<div>Back account details for electronic payment:</div>
<div>Bank BSB : {Bsb} Account : {AccountNumber}</div>
<div>Account Name : {AccountName}</div>
<div>Please quote invoice number in your payment or </div>
<div>email remittance to {DebtorEmail}</div>
<p>{PaymentDueInDaysStatement}</p>
</div>
Any advice would be appreciated.


Attachments:
PDF_Invoice_lines_split_accross_pages_smaller_margins.PNG
PDF_Invoice_lines_split_accross_pages_smaller_margins.PNG [ 110.71 KiB | Viewed 9302 times ]
PDF_Invoice_lines_split_accross_pages.PNG
PDF_Invoice_lines_split_accross_pages.PNG [ 119.71 KiB | Viewed 9302 times ]
PDF_Invoice_footer_split_accross_pages.PNG
PDF_Invoice_footer_split_accross_pages.PNG [ 83.69 KiB | Viewed 9302 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 24, 2017 7:54 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
Hi!
tkerwood wrote:
I am using..
PdfDocument pdf = PdfGenerator.GeneratePdf(body, PageSize.A4);
The good news (for us): this is not our product.
I cannot help you and it is unlikely that someone else on this forum will be able to help.

A similar question was asked and answered on StackOverflow:
https://stackoverflow.com/q/37660448/162529

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 180 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group