如何将php中的文本保存为pdf文件?

发布于 2024-08-03 23:40:24 字数 165 浏览 2 评论 0原文

我的网站中有文本区域(链接缩短网站),我希望用户输入某种文本,作为回报,我将提供(缩短链接)一个用户可以下载的 pdf 文件。我如何使用 php 做到这一点,我需要额外的吗库或默认的 php 库能够做到这一点?(顺便说一下,我正在 Windows 机器上工作)(网站使用 php mysql apache 最新版本)

I have textarea in my site(link shortening site) i want to user enter some kind of text and as a return i will give(shorten link) a pdf file which user can download.How can i do that with php do i need extra library or default php libraries are capable of doing that?(i am working on windows machine by the way)(site using php mysql apache latest versions)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

却一份温柔 2024-08-10 23:40:24

这应该对你有帮助

我发现fpdf 也是如此。 :)

但我认为第一个解决方案更适合它,因为它不是来自第三方

This should help you

And I found fpdf as well. :)

But I think the first solution will suit it more because it is not from a third party

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文