通用文本打印机驱动程序不起作用 [英] Generic text-only printer driver doesn't work

查看:838
本文介绍了通用文本打印机驱动程序不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用通用文本打印机驱动程序,作为WDK(Windows驱动程序工具包)中的一个示例提供。但它适用于某些应用程序,不适用于其他应用程序。就像它可以使用记事本和Microsoft word一样,但不适用于Chrome浏览器或 FloreantPOS 。我尝试使用这个驱动程序打印到一个文件或热敏打印机与以下4个应用程序:
$ b $ 1)记事本上的简单文本:成功工作。

$ b)b
b)2)Microsoft Word上的文本+图形(文字艺术):可成功运行,即打印文本并省略图形3)打印简单来自Chrome浏览器的google文档中的文本:无法正常工作,例如,在打印到文件的情况下,该文件为空,并且在打印到热敏打印机时,我收到一个空白页



4)从 FloreantPOS 打印收据:与(3)相同。



我想知道是否有人能告诉我什么chrome和 FloreantPOS 的行为有所不同?另外,我是否可以对通用文本驱动程序进行一些更改,以使其可以与Chrome和 FloreantPOS 一起使用?



感谢!!

解决方案

Chrome将文字打印为图形,至少我尝试过的所有网站。它使用线条绘制文本而不是打印实际字符;因此,没有文字驱动程序可以打印。您可以通过打印到Adobe PDF然后打开生成的PDF并使用印前检查分析来检查它。我从cnn.com网站打印了20页,并在PDF中获得了 no 文本。当我打印到Windows纯文本打印机时,我只得到一堆换行符。



不幸的是,有些应用程序以这种方式打印。我得到了与Firefox相同的结果。 (浏览器在打印方面糟糕透顶)。在tumblr.com上使用大多数纯文本的Firefox,我会得到完整的垃圾。最有可能的是,Firefox使用glyph IDs而不是字符进行打印,文本驱动可能无法正确处理。



恐怕没有解决方法这不是使用不同的驱动程序。一个纯文本驱动程序是非常有限的,我怀疑它会适用于大多数应用程序。我希望即使Word失败,某些字体。我建议使用Unidriver Postscript或者光栅驱动。


I am using Generic text-only printer driver, provided as a sample in WDK(Windows driver toolkit). But it works with some applications and doesn't work with others. Like it works with Notepad and Microsoft word, but doesn't work with chrome browser or FloreantPOS. I tried using this driver to print to a file or a thermal printer with following 4 applications:-

1)Simple text on Notepad: Works successfully.

2)Text + graphics(word art) on Microsoft Word: Works successfully i.e. prints text and omits graphics

3)Printing simple text from google docs on Chrome browser: Doesn't work i.e. in case of printing to a file, the file is empty and in case of printing to a thermal printer, I get a blank page

4)Printing a receipt from FloreantPOS: Same as (3).

I was wondering if somebody can tell me what chrome and FloreantPOS are doing differently? Also, can I make some changes into Generic text-only driver to make it work with chrome and and FloreantPOS ?

Thanks!!

解决方案

Chrome prints text as graphics, or at least on all the web sites I tried. It uses line drawing to draw the text rather than printing actual characters; therefore, there is nothing for a text-only driver to print. You can demonstrate this by printing to Adobe PDF and then opening the resulting PDF and inspecting it with preflight analysis. I printed 20 pages from a cnn.com web site and got no text in the PDF. When I print to the Windows text-only printer, I get nothing but a bunch of linefeed characters.

Unfortunately, some applications print this way. I get the same results with Firefox. (Browsers are all notoriously bad at printing.) Using Firefox on tumblr.com, which is mostly plain text, I get complete garbage. Most likely, Firefox is printing using glyph IDs rather than characters, which the text-only driver probably doesn't handle correctly.

I'm afraid there is no fix for this other than using a different driver. A plain text driver is very limited and I doubt it will work well with most applications. I would expect even Word to fail with certain fonts. I would recommend using the Unidriver Postscript or raster driver instead.

这篇关于通用文本打印机驱动程序不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆