当前位置: 首页 > news >正文

网站建设 中国内最好的网站建设公司

网站建设 中,国内最好的网站建设公司,专业网站开发联系方式,广东做网站的公司我有一个简单的课程申请表,填写完成后,会向申请人发送一封电子邮件,并附上他选择作为pdf附件的课程的费用报价.我正在使用TCPDF并使用会话变量将数据从表单传递到库.内容采用 html 格式.生成PDF并根据需要作为附件发送.问题是它是空白的..只有页眉和页脚在文档中.在 linux 中尤…我有一个简单的课程申请表,填写完成后,会向申请人发送一封电子邮件,并附上他选择作为pdf附件的课程的费用报价.我正在使用TCPDF并使用会话变量将数据从表单传递到库.内容采用 html 格式.生成PDF并根据需要作为附件发送.问题是它是空白的..只有页眉和页脚在文档中.在 linux 中尤其如此.在Windows中,pdf文档在下载时按预期生成.但是,在下载文档之前单击“视图”时,只显示页眉和页脚.这是我的代码.请有人帮忙.谢谢.session_start();require_once(../config/lang/eng.php);require_once(../tcpdf.php);// create new PDF document$pdf new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, UTF-8, false);// set document information$pdf-SetCreator(PDF_CREATOR);$pdf-SetAuthor(Josiah Njuki);$pdf-SetTitle(Quotation Request);$pdf-SetSubject(TCPDF Tutorial);$pdf-SetKeywords(TCPDF, PDF, example, test, guide);// set default header data$pdf-SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, , PDF_HEADER_STRING);// set header and footer fonts$pdf-setHeaderFont(Array(PDF_FONT_NAME_MAIN, , PDF_FONT_SIZE_MAIN));$pdf-setFooterFont(Array(PDF_FONT_NAME_DATA, , PDF_FONT_SIZE_DATA));// set default monospaced font$pdf-SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);//set margins$pdf-SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);$pdf-SetHeaderMargin(PDF_MARGIN_HEADER);$pdf-SetFooterMargin(PDF_MARGIN_FOOTER);//set auto page breaks$pdf-SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);//set image scale factor$pdf-setImageScale(PDF_IMAGE_SCALE_RATIO);//set some language-dependent strings$pdf-setLanguageArray($l);// ---------------------------------------------------------// set default font subsetting mode$pdf-setFontSubsetting(true);// Set font// dejavusans is a UTF-8 Unicode font, if you only need to// print standard ASCII chars, you can use core fonts like// helvetica or times to reduce file size.$pdf-SetFont(dejavusans, , 14, , true);// Add a page// This method has several options, check the source code documentation for more information.$pdf-AddPage();// Set some content to print$html . $_SESSION[content] . ;$html . EOD;// Print text using writeHTMLCell()$pdf-writeHTMLCell($w0, $h0, $x, $y, $html, $border0, $ln1, $fill0, $resethtrue, $align, $autopaddingtrue);// ---------------------------------------------------------// Close and output PDF document// This method has several options, check the source code documentation for more information.//$pdf-Output(example_001.pdf, I);$doc $pdf-Output(quotation.pdf, S);//define the receiver of the email$name Name goes here;$email jnjuki103gmail.com;$to $name ;$from John-Smith ;$subject Here is your attachment;$fileatt $pdf-Output(quotation.pdf, S);//$fileatt ./test.pdf;$fileatttype application/pdf;$fileattname newname.pdf;$headers From: $from;$file fopen($fileatt, rb);$data fread($file, filesize($fileatt));fclose($file);$semi_rand md5(time());$mime_boundary Multipart_Boundary_x{$semi_rand}x;$headers . \nMIME-Version: 1.0\n .Content-Type: multipart/mixed;\n . boundary\{$mime_boundary}\;$message This is a multi-part message in MIME format.\n\n .-{$mime_boundary}\n .Content-Type: text/plain; charset\iso-8859-1\n .Content-Transfer-Encoding: 7bit\n\n .$message . \n\n;$data chunk_split(base64_encode($data));$message . –{$mime_boundary}\n .Content-Type: {$fileatttype};\n . name\{$fileattname}\\n .Content-Disposition: attachment;\n . filename\{$fileattname}\\n .Content-Transfer-Encoding: base64\n\n .$data . \n\n .-{$mime_boundary}-\n;if (mail($to, $subject, $message, $headers)) {echo The email was sent.;} else {echo There was an error sending the mail.;}//// END OF FILE//
http://www.sadfv.cn/news/220737/

相关文章:

  • 网站建设 铭阳传媒环球网
  • 制作俄语网站thinkphp相比Wordpress
  • 教学网站建设计划成都模板网站建设服务
  • 买域名送网站空间霸榜seo
  • 潍坊网站开发高手手机网站的推广
  • 做调像什么网站找活网站 公司 备案
  • 受欢迎的集团网站建设网站建设代理多少钱
  • wordpress写文章江门百度seo
  • 网站建设数据的需求分析万网网站首页
  • 重庆人居建设集团网站asp网站的优点
  • 常州做网站设计小程序模板怎么导入
  • 如何建立收费网站百度竞价系统
  • 苏州建站模板系统杭州市钱江新城投资集团有限公司征集网站建设合作单位的公告
  • 建站费用报价单南宁网络建站
  • 手机网站在哪里找到做外贸的经常浏览的三个网站
  • 自己做一个网站郑州做网站推广
  • 山东建设机械协会网站wordpress 个人简介
  • 网站你懂我意思正能量免费苏州建网站的公
  • 济南品牌网站建设黑科技wifi蹭网神器
  • 泰州企业建站系统深圳网站制作哪里找
  • 啤酒招商网站大全湖南平台网站建设设计
  • 门户网站设计欣赏设计logo的理念
  • 西部网站邮箱登录西宁市网站建设公司
  • 北京网站建设模板网站收录不稳定
  • 自己做网站百度能收录码企业解决方案怎么写
  • 翻译网站模板网站做快捷方式
  • 网站需要怎么做才能被百度收录什么是网站什么是网址
  • 常州建设银行网站做网站网站牟利200万判刑
  • 比较好的企业网站免费行情软件app网站下载大全安卓
  • 广州建站服务兰州做网站的公司有哪些