<?php header("Content-type: application/pdf"); require_once("html2fpdf_reverse.php"); // activate Output-Buffer: ob_start(); ?> <html> <link href="includes/css-js/admin.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style1 {font-size: small} --> </style> <body> <?php echo $_REQUEST['htmlText']; ?> </body> </html> <?php include('pdf_footer.php'); ?>