Getting Started

May 18, 2016

This page guides you through the usage of the R&OS PHP Pdf class library.

A PDF Document always starts with “%PDF-1…” when opening with a text editor.
The smallest valid PDF can be something

Smallest possible PDF using R&OS PDF Class in PHP

When we want to generate the PDF file using PHP we can arrange this by using theĀ R&OS class called “Cpdf”.
So, PHP file can look as follows:

Add some text content

Lets begin with some text content to be shown in the PDF output. For this we can use the method

An example displaying “Hello World” can be achieved as following:

Please refer to the DocumentationĀ for further details

DOCUMENTATION