破宝

我是一块破破烂烂的宝贝石头。
随笔 - 94, 评论 - 1281, 引用 - 52

导航

关于

自选精华版 RECOMMENDATIONS
留言板 GUESTBOOK

本人 blog 文章、图片及其他资源等,除另有声明外,均遵循以下原则向全球(当然包括朝鲜、古巴、利比亚等国)共享:

1。欢迎转载、复制、传播、引用,但转载、复制(包括但不仅限于作为参考资料复制到本地)、传播、引用同时必须在显著位置注明作者(破宝/percyboy)和文章原始 URL 地址等信息。但商业转载、复制、传播(尤指用于图书、光盘等媒体的部分或全部),须事先征得本人的许可。

2。文章以“现状”提供,不为由于使用本站资源而造成的任何损失而负责,仅提供力所能及的咨询和参考意见。

3。关于修改:允许您将本 blog 中的资源作为参考资料复制时的一定修改,但仍须保留作者和出处信息;其他情况下的修改(包括修改后再发布),须和本人确认许可。
 

标签

每月存档

最新留言

广告

午餐后,活动活动鼠标~ “造”几个字

偶然的机会发现了这个 wiki 站:点阵中文——“目的是为 Linux 制作美观,通用,开放的中文字体”。由于免费或者开源的中文字体十分有限,Windows 中美观大方的“宋体”版权属于中易公司,为了避免版权问题,组织者尝试完成一套点阵中文字体,他们称之为“宋体-简体中文-标准体”。

“造字”界面很简单,在首页输入你想编辑的汉字,一般会给出四个连接,分别是那个字 9pt, 10pt, 11pt, 12pt 四种字体大小的链接,打开后点上方的“编辑此页”,会出来一个类似“扫雷”游戏的界面,你就可以开始修饰你造的字了。不过,造字之前,你应该看看“点阵汉字制作标准”。

据说还有一个德国人参与了造字,挺有意思的。午餐后,大家可以活动一下鼠标,“点”出几个字~  我刚刚把自己的名字给点出来了  :)

不过,有一点觉得不解的是:Windows 系统中广泛采用 TrueType 字体,“其最大的特点就是它是由一种数学模式来进行定义的基于轮廓技术的字体,这使得它们比基于矢量的字体更容易处理,保证了屏幕与打印输出的一致性。同时,这类字体和矢量字体一样可以随意缩放、旋转而不必担心会出现锯齿。”(摘自天极网)。难道 Linux 还在使用相对比较原始的点阵字体吗?

posted on 2004-11-26 22:48:00 by percyboy  评论(5) 阅读(2710)

The virtual printer -- Microsoft Office Document Image Writer

You'll see a virtual printer named "Microsoft Office Document Image Writer" is added to your printers' list if you install Office 2003. Use this printer you may get a MDI file.

There are few articles over this function. But I found a good scenario, which this printer does the work perfectly.

(1) First use this printer to print files, like Word, Excel, PowerPoint, NotePad, web pages in browsers, emails in Outlook, pictures in Photoshop .... Yes, you convert files in different formats to a common format -- MDI format.

(2) Office 2003 also provides us a programming interface. We can get the texts in the MDI file via our codes. (only a few lines of codes, quite easily.) And then, you may use an indexing engine, like SQL Server's full-text search ability or NLucene, to create the indexes of the MDI files.

(3) An ActiveX control for viewing MDI files is also contained in Office 2003. You can drop this control onto your Windows Forms, and display a MDI file's content in the control.

Now, you convert the various formats' files to a single format for storing, and create indexes for these files. You may let your user query over the indexes (of cource, it may be full-text searching.), and display the match files in the ActiveX control mentioned above.

A simple "Document Management System" is created till here.


Maybe you have Adobe Acrobat family software (here EXCLUDE the Adobe Acrobat Reader), you also have a virtual printer, which will print out PDF format files. Yes, you may do the same thing just like the MDI solution does.

However, many customers may have Office 2003, or maybe it's in their future plan. The PDF solution need your customer purchase Acrobat's licences. That'll be another big budget.

(The original Chinese version is here.)

posted on 2004-11-10 10:40:00 by percyboy  评论(3) 阅读(33867)

Office 2003 里的 Document Image Writer 虚拟打印机

(An translated English version of this article is provided here.)

安装完 Office 2003 之后,你会发现“打印对话框”中的打印机列表多了一个“Microsoft Office Document Image Writer”的打印机,如果选中此项来打印的话,你会得到一个扩展名为 MDI 的文件。

这个虚拟打印机本来用处是不大的,也很少有文章介绍它。但以下介绍一个很好的 Microsoft Office Document Image Writer 虚拟打印功能的应用场景:

(1) 我们可以通过 Microsoft Office Document Image Writer 将 Word,Excel,PowerPoint,记事本,Internet Explorer 等浏览器,Photoshop,Outlook Express 中的 Email ……各种可以打印输出的文件,打印输出为 MDI 这一通用格式,用于存档

(2) Office 2003 中提供的 Microsoft Office Document Imaging 功能,同时提供了编程接口,可以很方便的从 MDI 文件中提取其中包含的文本,图片等内容,通过相应的索引模块,可以很方便的为不同格式的文档建立索引。

(3) Office 2003 同时提供了可以查看 MDI 文件内容的 ActiveX 控件,我们可以把该控件放置到我们的 Windows Forms 中,用于查看 MDI 文件的内容。

这样,一个通用性很高的文档管理系统就很容易创建出来了。

也许你安装有 Adobe Acrobat 系列的软件(注意此处不包括 Adobe Acrobat Reader)的话,你会知道你的打印机列表中也是有一个可以打印 PDF 格式的虚拟打印机(而 Acrobat Reader 只能读 PDF,不能写)。这里,Microsoft Office Document Image Writer 的作用大致和 Adobe Acrobat 的虚拟打印机类似。

通过 PDF 这一通用格式,我们也可以实现上面 MDI 实现的功能。但 MDI 的优势是明显的:
Office 2003 已经是很多客户已经购买或者计划购买中的软件,为实现文档管理功能而另外购买 Acrobat 的 licences 显然要额外花费很多成本。

(当然还有个因素,大多数人都相信,微软自己的东西兼容性要相对好一些。)

2008/3补充:如果有 Office 2007,或者安装 .NET Framework 3.5 之后,会有新的 XPS 虚拟打印机,XPS 完全可以替代 MDI,并且比 MDI 更先进,可以直接嵌入到 WPF 界面中。

posted on 2004-11-09 19:33:00 by percyboy  评论(36) 阅读(70063)

Powered by: Joycode.MVC引擎 0.5.2.0