I can't set page size A4. Only 'other size' is available by default. I tried to set it obviously in the code, but unsuccessfully. Can you make ready versions of page size?
$rtf->setPageWidth(21); // in cm
$rtf->setPageHeight(29.7); // in cm
This is a feature request, which was implemented in the commit: https://github.com/phprtflite/PHPRtfLite/commit/dbb25bd0287c727307754d2a892189dcc6ce11cb