12. Fit-to-size

When parts of the content of a document are too large to fit on a page (e.g. the width of a table is wider than the width of the document), fit-to-size is the way to handle it. Content can be automatically scaled to enhance the layout and to ensure that no content crosses over the border of a document. This is essential for printing purposes for example, where no content may exceed the print margin unless it can not be printed.

To enable fit-to-size, set the property "-ro-scale-content" in a stylesheet or in the style section of your document. The property must be in the @page style section and allows any percentual value which is treated as a scaling factor for the page.

The value "none" causes no scaling.

The value "auto" enables the automatic scaling of the content to fit the size of the page.

Here's an example how to set enable the automatic scaling of the page content:

@page {
    -ro-scale-content: auto;
}