php中base64转pdf的办法:
/* * base64转pdf */function base642pdf($formTxt,$toPdf){ $file = file_get_contents($formTxt);//读 $data = base64_decode($file);//转换 file_put_contents($toPdf, $data);//写}/* * pdf转base64 */function pdf2base64($formPdf,$toTxt){ $file = file_get_contents($formPdf);//读 $data = base64_encode($file);//转换 file_put_contents($toTxt, $data);//写}
保举教程: 《PHP教程》
以上就是php中base64转pdf的办法的具体内容,更多请存眷资源魔其它相干文章!
版权声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。
抱歉,评论功能暂时关闭!