$t1_style = "B"; $t1_size = "12"; $t2_police = $police_standard; $t2_style = "B"; $t2_size = "11"; $t3_police = $police_standard; $t3_style = "BIU"; $t3_size = "10"; $contenu_police = $police_standard; $contenu_style = ""; $contenu_size = "8"; $chapitre = 0; $section = 0; include $page_pdf; //$pdf->SetProtection(array("print", "copy")); $pdf->Output(); //Read the FPDF.org manual to know the other options break; /* * ********* Fin Code PDF * ********* */ /* * ************ Début Code HTML * ************ */ /* * ********* Fin Code PDF * ********* */ /* * ************ Début Code HTML * ************ */ default:
$data[$i][$j] = $column_value[$i]; $j++; } } } else { echo "No Records found"; } oci_free_statement($stmt); $title = 'List of equipment'; $pdf = new XFPDF(); $pdf->Open(); $pdf->SetFont('Arial', '', 10); $pdf->AddPage('P', '', 'A4'); $pdf->SetTitle($title); $pdf->FancyTable($header, $data); $pdf->Output("Report.pdf"); ?> <html> <head><title></title></head> <body> <?php $file = 'Report.pdf'; $filename = 'Report.pdf'; header('Content-type: application/pdf'); header('Content-Disposition: inline; filename="' . $filename . '"'); header('Content-Transfer-Encoding: binary'); header('Accept-Ranges: bytes'); @readfile($file); ?>