Difference between revisions of "Manual:Extension/BlueSpiceBookshelf/Customized PDF Output"

[quality revision][quality revision]

How to adjust page breaks in multi-page PDFs.

Adjusting page breaks[edit | edit source]

By default, each chapter and sub-chapter in a Book-PDF is started on a new page. To avoid these page breaks and create a continuous chapter flow, an administrator can add the following code to the page MediaWiki:Common.css:
                    .bs-page-content, .bs-page-content.booklevel-1, .bs-page-content.booklevel-2 
{page-break-after: avoid; page-break-before: avoid;}

                
Adjusting page breaks
            
            
            
            
        How to adjust page breaks in multi-page PDFs.
            
            
            
            == Adjusting page breaks ==
            
            
            
            
        By default, each chapter and sub-chapter in a Book-PDF is started on a new page. To avoid these page breaks and create a continuous chapter flow,  an administrator can add the following code to the page MediaWiki:Common.css:<syntaxhighlight lang="css">
        
        .bs-page-content, .bs-page-content.booklevel-1, .bs-page-content.booklevel-2 
            
            
        {page-break-after: avoid; page-break-before: avoid;}
        
        
        </syntaxhighlight>
Line 1: Line 1:
Adjusting page breaks
+
How to adjust page breaks in multi-page PDFs.
 +
 
 +
== Adjusting page breaks ==
  
 
By default, each chapter and sub-chapter in a Book-PDF is started on a new page. To avoid these page breaks and create a continuous chapter flow,  an administrator can add the following code to the page MediaWiki:Common.css:<syntaxhighlight lang="css">
 
By default, each chapter and sub-chapter in a Book-PDF is started on a new page. To avoid these page breaks and create a continuous chapter flow,  an administrator can add the following code to the page MediaWiki:Common.css:<syntaxhighlight lang="css">
.bs-page-content, .bs-page-content.booklevel-1, .bs-page-content.booklevel-2 {page-break-after: avoid; page-break-before: avoid;}
+
.bs-page-content, .bs-page-content.booklevel-1, .bs-page-content.booklevel-2  
 +
{page-break-after: avoid; page-break-before: avoid;}
 
</syntaxhighlight>
 
</syntaxhighlight>

Attachments

Discussions