使用php将txt或doc转换为pdf [英] convert txt or doc to pdf using php
本文介绍了使用php将txt或doc转换为pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有人遇到过将文本或doc转换为pdf的php代码?
have anyone come across a php code that convert text or doc into pdf ?
它必须采用与原始txt或doc文件相同的格式,这意味着换行以及新段落...
it has to follow the same format as the original txt or doc file meaning the line feed as well as new paragraph...
推荐答案
使用对于要转换为PDF的文本,您可以使用 pdf扩展名是PHP . 您可以在此处查看示例.
For text to PDF, you can use the pdf extension is PHP. You can view the examples here.
这篇关于使用php将txt或doc转换为pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文