Is there a method somewhere that will take $mystring="hello there", and print it as a pdf to the browser?
I don't want to save the file to system, just print it to screen for download.
I've done it once using
Code:
require_once('../plugins/tcpdf/config/lang/eng.php');
require_once('../plugins/tcpdf/tcpdf.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set document information
//THESE ARE META in pdf
//GET FROM SETTINGS
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('Nicola Asuni');
$pdf->SetTitle('TCPDF Example 005');
$pdf->SetSubject('TCPDF Tutorial');
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
etc, but is there another way?
eg: printStringAsPDFAndOutputToBrowser( $mystring)
Bookmarks