Porting of R&OS PHP class for creating PDF files.