Ghostscript在转换为PCL时将pdf中的文本转换为图形
我正在使用 Ghostscript 将 PDF 转换为 PCL。我原本期望生成的 PCL 包含输出文本元素的命令,但实际上它是将 PDF 中的文本转换为位图数据。有什么办法可以保留文本数据吗?
I am using Ghostscript to convert a PDF to PCL. I was expecting the resulting PCL to include commands to output the text elements, instead it is essentially converting the text in the PDF to bitmap data. Is there any way to retain the textual data?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您指的是
pxcolor
和pxmono
PCL XL (PCL6) 设备。这些是高级矢量设备,但不支持文本 - 它会在非常有限的情况下输出位图字符。我们确实没有计划来实施这一点。
PCL 模型以 Truetype 和位图为中心,而 PDF 和 PostScript 则更多是 Type 1。此外,编码模型(PCL 与 PDF/PS)也有很大不同。这并不是说这是不可能的,只是大量的工作却收效甚微。
PCL XL 设备对于打印非常重要 - 它们允许将矢量发送到打印机(而不是像其他设备一样光栅化为 PCL 位图),这对于性能很重要。
我们还没有看到人们对这些设备在桌面上使用的兴趣,因为桌面上的文本很重要。
I assume you are referring the
pxcolor
andpxmono
PCL XL (PCL6) devices. These are high level vector devices but do not support text - well it will output bitmap characters in very restricted circumstances.We don't really have plans to implement this.
The PCL model is Truetype and Bitmap centered whereas PDF and PostScript are more Type 1. Also the encoding models (PCL vs. PDF/PS) are quite different. This is not to say it is not possible, just a lot of work with little perceived benefit.
The PCL XL devices are important for printing - they allow sending vectors to printers (instead of rasterizing to PCL bitmaps like other device) which is important for performance.
We haven't seen much interest for these devices to be used on the desktop where text would be important.