0

i want to send an email with a PDF attachment.but the file is a php file which generated dynamically.so i want to convert the php file into PDF..

i have used phpmailer here.

$mail->AddAttachment("view.php"); 

how to convert view.php to a pdf file

Jonathon Reinhart
  • 132,704
  • 33
  • 254
  • 328
user2215270
  • 121
  • 1
  • 2
  • 8
  • 1
    As above question asked many times, but have a look at http://www.tcpdf.org/ – Pwner Dec 19 '13 at 10:24
  • Do you just want to create the file and attach it later with the mailto function or do you want to send the email from your website? v [swiftmailer.org/docs/sending.html](http://swiftmailer.org/docs/sending.html) is the answer. – KarlosFontana Dec 19 '13 at 10:43

2 Answers2

0

Checkout mpdf lib.

Site

Examples & Docs

TreeNode
  • 472
  • 1
  • 7
  • 10
0

Using fPDF or mPDF, You can get the integration tutorial from these websites

http://www.mpdf1.com/mpdf/index.php

http://www.fpdf.org/

user1258544
  • 263
  • 1
  • 4
  • 11