简体   繁体   English

PHP FPDF打印错误

[英]PHP FPDF printing error

Our web app is using PHP FPDF to generate a PDF document containing text and images that is downloaded by the user and printed. 我们的Web应用程序使用PHP FPDF生成包含文本和图像的PDF文档,该文档由用户下载并打印。

I have tested printing on two printers. 我已经测试了在两台打印机上的打印。 The first one did absolutely nothing, the second one (BROTHER-MFC-8890DW) printed the following page: 第一个绝对不执行任何操作,第二个(BROTHER-MFC-8890DW)打印了以下页面:

ERROR NAME; 错误名称; typecheck COMMAND; 键入命令COMMAND; image OPERAND STACK; 图片OPERAND堆栈;

Here are the PDF's in question: 这是有问题的PDF:

https://drive.google.com/folderview?id=0B9fGr6w-dfLWZTZvaW5CZW13V0E&usp=sharing https://drive.google.com/folderview?id=0B9fGr6w-dfLWZTZvaW5CZW13V0E&usp=sharing

I have used libre office to test the second printer with a standard text page, PDF containing just text and a PDF containing text and images, and all printed without problems. 我已经使用libre office来测试第二台打印机的标准文本页面,即仅包含文本的PDF和包含文本和图像的PDF,并且所有打印都没有问题。

Does anybody know of what could cause this? 有人知道这可能导致什么吗?

Probably the error is not due to the type of PDF that generates FPDF, but may be outdated drivers Printer (or the type of images contained in the PDF) 错误可能不是由生成FPDF的PDF类型引起的,而是驱动程序打印机过时的(或PDF中包含的图像类型)

Most printing problems can be resolved by obtaining and installing the most recent print driver available for your particular make and model printer. 通过获取并安装适用于特定品牌和型号打印机的最新打印驱动程序,可以解决大多数打印问题。 Most printer manufacturers provide free printer driver updates from their web sites. 大多数打印机制造商都从其网站提供免费的打印机驱动程序更新。

What kind of images are present in the PDF? PDF中存在哪些图像? (png? jpg? gif? ..?) (png?jpg?gif?..?)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM