<?php$pdf=pdf_new();//initialize new objectpdf_begin_document($pdf);//create new blank PDFpdf_set_info($pdf,"Author","John Doe");//Set info about your PDFpdf_set_info($pdf,"Title","HelloWorld");pdf_begin_page($pdf,(72*8.5),(72*11));//specify page width and height$font=pdf_findfont($pdf,"Times-Roman","host",0)//load a fontpdf_setfont($pdf,$font,48);//set the fontpdf_set_text_pos($pdf,50,700);//assign text positionpdf_show($pdf,"Hello_World!");//print text to assigned positionpdf_end_page($pdf);//end the pagepdf_end_document($pdf);//close the object$document=pdf_get_buffer($pdf);//retrieve contents from buffer$length=strlen($document);$filename="HelloWorld.pdf";//Finds PDF length and assigns file nameheader("Content-Type:application/pdf");header("Content-Length:".$length);header("Content-Disposition:inline; filename=".$filename);echo($document);//Send document to browserunset($document);pdf_delete($pdf);//Clear Memory?>