在打印PDF文件时如何禁用用图形表示替换文本字符? [英] How to disable replacement of text characters with their graphic representation while printing PDF file?

查看:84
本文介绍了在打印PDF文件时如何禁用用图形表示替换文本字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有虚拟打印机驱动程序,可以从打印的东西创建EMF文件.之后,我的应用程序分析创建的EMF文件并提取文本信息.
这是问题所在:通常,如果客户打印PDF文件时,生成的EMF文件中缺少文本信息,因为PDF打印软件将非ascii字符替换为其图形表示形式.例如,相反,生成的EMR_EXTTEXTOUT/EMR_SMALLTEXTOUT记录之一包含每个打印字符的EMR_BEGINPATH/EMR_POLYDRAW16/EMR_ENDPATH序列.因此,我无法从此类EMF文件中提取文本信息.
是否可以禁用此行为?

I have virtual printer driver which creates EMF files from printed stuff. After that my application analyses created EMF files and extracts text information.
Here is the problem: often if customer prints PDF file text information is missing in generated EMF file because PDF printing software replaces non-ascii characters with their graphic representation. For example instead one of EMR_EXTTEXTOUT/EMR_SMALLTEXTOUT records generated file contains EMR_BEGINPATH/EMR_POLYDRAW16/EMR_ENDPATH sequence for every printed character. So i am unable to extract text information from such EMF file.
Is it possible to disable this behavior?

推荐答案

您无能为力,此行为是在打印软件或PDF文件本身中实现的(PDF文件可能包含文本作为曲线,而不是文本.纯文本),而不是打印驱动程序中.
也许打印软件可以选择在文本打印为文本和曲线打印为文本之间进行切换.

There is nothing you can do, this behavior is implemented in the printing software or in the PDF file itself (the PDF file might contain text as curves and not as plain text), not in the print driver.
Perhaps the printing software has an option to switch between text as text printing and text as curves printing.

这篇关于在打印PDF文件时如何禁用用图形表示替换文本字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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