Right now minimal "best fit" paper size is calculated based on DEFAULT_SCALE and MIN_PAPER_WIDTH / MIN_PAPER_SIZE config settings only.
This can be too small if a layout with index is selected, so different minimal width / height settings are needed.
The current code also does not take landscape vs. portrait into account. This so far wasn't much of an issue as min width and height were the same by default anyway, but this also needs improvement
Right now minimal "best fit" paper size is calculated based on DEFAULT_SCALE and MIN_PAPER_WIDTH / MIN_PAPER_SIZE config settings only.
This can be too small if a layout with index is selected, so different minimal width / height settings are needed.
The current code also does not take landscape vs. portrait into account. This so far wasn't much of an issue as min width and height were the same by default anyway, but this also needs improvement