为什么 Windows 系统对 PDF 支持不佳?

您所在的位置:网站首页 ghw什么文件 为什么 Windows 系统对 PDF 支持不佳?

为什么 Windows 系统对 PDF 支持不佳?

2023-04-21 06:46| 来源: 网络整理| 查看: 265

在macOS上做PDF相关的事,确实很稀松平常。但这种稀松平常的背后,其实还是Apple的技术选型的问题。在Mac OS X之前,Apple的图形系统,使用的Display PostScript。这个技术,就是把PostScript的图像模型用在GUI显示上。而到了Mac OS X或者macOS之后,系统的GUI就是使用Quartz了。而Quartz在维基百科[1]上的描述:

It is widely stated that Quartz "uses PDF internally" (notably by Apple in their 2000 Macworld presentation and Quartz's early developer documentation), often by people making comparisons with the Display PostScript technology used in NeXTSTEP and OPENSTEP (of which macOS is a descendant). Quartz's internal imaging model correlates well with the PDF object graph, making it easy to output PDF to multiple devices.

而熟悉iOS和macOS编程的,尤其是需要绘制View的,大部分API确实都是有PDF元素对应的,尤其是CGContext相关的函数[2]。

图形模型的相似,确实能够保证输出PDF以及操作PDF有相当大的便利。

而转到Windows这一方,图像层用的是GDI。这东西跟PostScript和PDF确实都没太大关系。但是,问题是,不是Apple支持的Windows就得支持。更以及,Apple系统里面也就多了个默认的浏览器啊,编辑功能基本上能用,但不好用。

所以,这更多的是一个应用程序级别的问题。跟系统没太大的关系。Apple只是以一个应用程序给了一些人幻觉。

Apple的Preview的支持就真的好吗?小位图图像给加高斯模糊。JPEG2000/JBIG2图像解码器有有bug,不是图像完全解析不了,是图像部分显示不了。某些PDF内嵌的CFF也解析不对。这有什么好吹的呢?

而且实话说,PDF这东西,很多年前都不在大众之间流行,只是在印刷领域流行。现在在网上还能找到前些年,一些人提出的很奇怪的PDF的问题。

PDF这东西之所以能够慢慢从印刷领域渗透到大众领域,是有一个过程的,比如你去看amazon上卖的pdf reference 1.6,就有一段有意思的描述:

The FDA requires that drug approvals be submitted in this format, and U.S. federal courts request that it be used for electronic case filing. We're talking, of course, about PDF (or Portable Document Format), and with more than 600 million copies of its reader (Adobe Acrobat) downloaded, and governments and enterprises around the world using it to streamline document management, chances are you'll be called to develop for it as well. This comprehensive reference makes sure you're ready! Containing all of the info from previous editions, plus new material on what's been added to PDF Version 1.5, this essential guide makes a highly technical subject accessible and intelligible.

PDF这种主要是不可变格式的东西(固定版式),也被迫因为新需求加了新功能。这里的意思就很明显,PDF的更广泛使用,实际上是由公共事务的需求推动起来的。

美国如此,我国也是如此。不过,我国有一个OFD格式。虽然我当年看了一眼就觉得是PDF改。但是这种东西,以及其本底的概念,在我国公共事务上的使用,不是什么坏事。

回到话题上来,别太相信macOS上的PDF支持。要想支持的好,大概可能还得是Adobe的软件。其他的软件也能用,也都比macOS自带的可用度要高。这事在Windows上也是要如法炮制的。

参考^Quartz https://en.wikipedia.org/wiki/Quartz_(graphics_layer)^CGContext https://developer.apple.com/documentation/coregraphics/cgcontext


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3