|
Running the example script
To run the example, extract the file pbaphpdemotext1.php from the downloaded zip file and copy this file to a web server directory. A True Type font file must also be copied to the server root directory and the script edited to refer to this file on the line which includes the AddFont command. Open the PHP page in a browser and a PDF file will be created and displayed.
More detailed instructions for running this script are available in the readme.txt file in the download.
The following properties and methods are demonstrated by this script: AddFont, TextFont, TextSize, TextColor, TextLineSpacing, TextMaxWidth, TextAlign and WriteText. Try editing the various lines of code to see the effect on the PDF document produced.
|