page-break-inside

Work around for page-break-inside:avoid

血红的双手。 提交于 2019-12-04 11:45:25
I am currently working on printing something. I have a dynamic page where it has variable numbers of block level elements. Some may be 1 line, and some may be 100+ lines. <div class='myclass'><span id="id1">1</span>text 1 line....</span></div> <div class='myclass'><span id="id2">2</span>text 10 lines....</span></div> <div class='myclass'><span id="id3">3</span>text 3 lines....</span></div> <div class='myclass'><span id="id4">4</span>text 100+ lines....</span></div> ... I know the page-break-inside:avoid; when it is implemented (supported by Opera, Chrome, and IE7+ in strict html mode only)

Safari page-break-inside:avoid not working

纵然是瞬间 提交于 2019-11-30 18:35:15
I have a problem with CSS page-break-inside: avoid . I have some printing blocks which have this css attribute set, however Safari breaks any content just as the real page break occurs, while it works in all other major browsers (current versions) I've tested so far. It doesn't seem to matter which type of content the printing block holds as I've seen this behavior with both a table and a canvas element being split up right in the middle. As far as http://css-tricks.com/almanac/properties/p/page-break/ and https://developer.apple.com/library/archive/documentation/AppleApplications/Reference

Safari page-break-inside:avoid not working

微笑、不失礼 提交于 2019-11-30 03:00:22
问题 I have a problem with CSS page-break-inside: avoid . I have some printing blocks which have this css attribute set, however Safari breaks any content just as the real page break occurs, while it works in all other major browsers (current versions) I've tested so far. It doesn't seem to matter which type of content the printing block holds as I've seen this behavior with both a table and a canvas element being split up right in the middle. As far as http://css-tricks.com/almanac/properties/p

Need to give page break in inner PdfPTable of iTextSharp

為{幸葍}努か 提交于 2019-11-28 04:38:35
问题 I am printing my html string in to pdf using iTextSharp. I have nested table hierarchy. I need the Inner table should be break if its not fit in the current page and Start printing on new page. I have putted the KeepTogether = true; SplitLate = false; LockedWidth = true; For all the tables that is for parent as well as all the child tables. But in my case the Inner table is not breaking. Here is the Image. I am adding main parent table in document.add(parentTable). I have checked that If I