Serna allows you to work with very large documents by collapsing portions of them in WYSIWYG mode.
Large document estimation
Serna counts the elements in the document.
Serna divides the result by an average number of elements per page.
An assumption of how many elements form a page is usually specific to the current document template. It is possible to change the default number of elements per page for a particular type of document (e.g. Docbook). For details, see the elems-per-page element in ../developers_guide/document-template-properties.html#doc-template-properties__folding-and-large-document-support.
Serna considers a document large if the estimated number of pages exceeds the large document size. You can set the number of pages after which Serna should consider a document to be large. The default value is 50 pages.
Note that this estimation is not exact, and it only prevents you from lengthy formatting if the document is suspected to be very large.
Large document treatment
Collapse some elements
A large document will open with some elements collapsed.
Figure 1. Large document opened collapsed.
Elements that should be collapsed in a document of a particular type are listed in a corresponding document template. For details, see the fold-if-large element in ../developers_guide/document-template-properties.html#doc-template-properties__folding-and-large-document-support).
Open a document without collapsing
A large document will open normally.
Figure 2. Large document opened normally.
Ask the user whether to collapse a document or not
On opening a large document, the Opening Large Document Dialog will appear.
Figure 3. Opening Large Document Dialog.