web 2.0

How to usd PHP & PDF - Write Text in PDF

How to usd PHP & PDF - Write  Text in PDF Learn PHP how to using PHP and write/export text into PDF file.

ShotDev Focus:
- PHP & PDF (write/export to pdf)

Example

php_pdf.php


<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<?php
require('fpdf.php');

$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Times','B',16);
$pdf->Cell(0,10,'Welcome to www.ShotDev.Com',0,1);
$pdf->Cell(0,20,'Version 2010',0,1,"C");
$pdf->Output("shotdev/mypdf.pdf","F");
?>
PDF Created Click <a href="shotdev/mypdf.pdf">here</a> to Download.
</body>
</html>

Create a php file and save to path root-path/myphp/

Run
http://localhost/myphp/php_pdf.php

Screenshot

PHP & PDF - Write  Text in PDF
.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (2 votes, average: 5.50 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.