For example, I've really had the opportunity to create stand out files by altering this content-type to have an html document. Within this scenario, I'd use php to create the table cells with information collected in the database after which set this content-type prior to the page is made. It is possible to method of doing this for pdf's?

Simplest method to generate PDF is to apply DOMPDF. Learn more about DomPDF on Google's Projects.

It's very simple:

  1. Generate HTML page
  2. Create a call to DomPDF
  3. Download/Save your valuable PDF

Here is demo showing how easy and fast it is.


Since you are utilizing Joomla you may create PDF view.

Create view known as view.pdf.php within the view directory, include template and PDF is going to be produced instantly. Regrettably Joomla's PDF is extremely plain... just text, images along with other fundamental elements.

have really had the opportunity to create stand out files by altering this content-type to have an html document.

Well, not necessarily: You've been creating a HTML file, that Stand out transpires with have the ability to parse, and wrongly proclaiming it as being a local Stand out file. (I am talking about no critique with this particular - the technique works fine within its restrictions - but to become exact. :)

So far as I understand, no chance to complete for PDF. You will need to generate a PDF file utilizing a library, or send the page to some PDF printer around the client's side.

For those who have an easy HTML then It is best to use TCPDF to create your PDF output. Just take a look at example 6 and 61 around the TCPDF examples page to determine how easy it's to create Ebooks with different subset of HTML.

You should utilize a library to create the PDF document. You cannot just alter the content-type as if you did for Stand out.

Try http://www.fpdf.org/

require('fpdf.php');
$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output();

Too an fpdf additionally, there are tcpdf that is worth looking at.

Also, if you are looking at producing actual Stand out files then take a look at PHPExcel.