如何解决这个pdf问题

发布于 10-11 06:41 字数 284 浏览 7 评论 0原文

您好,我目前正在将 PHP 文件转换为 PDF 文件。我关注了 http://www.fpdf.org/ 这个网站。我收到这样的错误 ?> FPDF-Merge 错误:某些数据已输出,无法发送 PDF 文件

我该如何解决此问题。如果我的声音不清楚,抱歉。请访问该页面http://www.fpdf.org/

hi as im currently working with conversion of PHP file to PDF file. i followed http://www.fpdf.org/ this site. iam getting error like this ?> FPDF-Merge Error: Some data has already been output, can't send PDF file

how can i resolve this problem.if my sound is not clear sorry. please visit that page http://www.fpdf.org/

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

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

发布评论

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

评论(1

再浓的妆也掩不了殇2024-10-18 06:41:43

在请求 FPDF 发送文档之前,您不得打印任何内容。

FPDF 需要设置一些 HTTP 标头来告诉客户端响应(PDF)的性质。但是,如果您的脚本已经打印了任何内容,则 HTTP 标头已发送,并且 FPDF 无法设置它自己的标头。

You must not print anything before requesting FPDF to send the document.

FPDF needs to set some HTTP headers to tell the client about the nature of the response (a PDF). However if your script already printed anything the HTTP headers have been sent and FPDF can't set it's own.

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