[英]How can i convert any file like .docx,xslx,img,txt to PDF preview using php?
I need to convert any file to PDF Preview if i click the document link in table Table Image link如果我单击表格表格图像链接中的文档链接,我需要将任何文件转换为 PDF 预览
This code only for image to pdf convert.此代码仅用于将图像转换为 pdf。 If you have ImageMagick installed and exec
permissions,如果您安装了exec
和执行权限,
exec("convert foo.jpeg foo.pdf");
Below link for convert Word doc, docx and Excel xls, xlsx to PDF with PHP以下链接用于使用 PHP 将 Word doc、docx 和 Excel xls、xlsx 转换为 PDF
Convert Word doc, docx and Excel xls, xlsx to PDF with PHP 使用 PHP 将 Word doc、docx 和 Excel xls、xlsx 转换为 PDF
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.