PHP PDF upload

In this topic will see the PDF Creation and sent a mail,for creating a PDF file need to include the fpdf.php. The file has all the parameter to generate the PDF file.
As seen below,

define(‘FPDF_VERSION’,’1.53′);
SetMargins($left,$top,$right=-1)
SetLeftMargin($margin)
SetTopMargin($margin)
SetRightMargin($margin)
SetCompression($compress)
SetTitle($title)
SetSubject($subject)

while sending Mail these lines should follow,

$headers .= “\nMIME-Version: 1.0\n” .
“Content-Type: multipart/mixed;\n” .
” boundary=\”{$mime_boundary}\””;

$message = “This is a multi-part message in MIME format.\n\n” .
“–{$mime_boundary}\n” .
“Content-Type: text/plain; charset=\”iso-8859-1\”\n” .
“Content-Transfer-Encoding: 7bit\n\n” .
$message . “\n\n”;

Please Click here to download the File.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: