kao*_*obo 6 pdf adobe-illustrator color-management color-profile
它有一个命令行或GUI工具来转储有关ICC配置文件/颜色转换的信息,这些信息是为Illustrator的PDF导出对话框设置的"颜色管理和PDF的PDF/X选项"选项吗?
Illustrator的"颜色管理和PDF的PDF/X选项"选项
[image] http://blogs.adobe.com/vikrant/files/2012/05/grayscale_export.png
这是一个基于命令行的方法,用于从PDF中提取ICC颜色配置文件.它使用安全研究员Didier Stevens编写的Python脚本pdf-parser.py,您可以在这里下载.
但是,此工具不是ICC提取的专用工具.(我不知道这样的工具.)它是调查PDF文件的通用命令行工具.
因此,您需要经历各种步骤才能实现提取.
您必须使用-s搜索字符串ICCBased.(没有嵌入式ICC配置文件的PDF文件将不具有此关键字[除了可能在其文本内容中使用它...].)
pdf-parser -s ICCBased my.pdf
Run Code Online (Sandbox Code Playgroud)
我的测试PDF返回了这个:
obj 18 0
Type:
Referencing: 21 0 R
Run Code Online (Sandbox Code Playgroud)
似乎在PDF对象21中可以找到ICC配置文件.
您必须使用-o 21以查看PDF对象21是什么:
pdf-parser.py -o 21 my.pdf
Run Code Online (Sandbox Code Playgroud)
我的测试PDF返回:
obj 21 0
Type:
Referencing:
Contains stream
<<
/Alternate /DeviceRGB
/Filter /FlateDecode
/Length 2574
/N 3
>>
Run Code Online (Sandbox Code Playgroud)
好的,这看起来我们越来越近了......
在第2步中,我们获得了两个重要的信息:
-o 21参数显示pdf-parser.py)./FlateDecode才能获得其内容.因此,我们pdf-parser.py现在必须使用另外两个参数运行:
-d filename 为了将PDF对象21的流转储到文件中.-f 在将对象流转储到文件时过滤/解压缩对象流.pdf-parser.py -o 21 -f -d 21.stream my.pdf我们现在已将PDF对象21的流转储到名为的文件中21.stream.让我们看看它包含的内容:
file 21.stream
21.stream: Microsoft ICM Color Profile
Run Code Online (Sandbox Code Playgroud)
看起来我们成功了.:-)
我会看看我的Mac OSX系统是否接受此配置文件:
mv 21.stream 21.icm
open 21.icm
Run Code Online (Sandbox Code Playgroud)
OSX使用"Color Sync Utility"打开文件并显示一个窗口.单击列表条目将在窗口底部打开不同的信息窗格:

iccdump将ICC配置文件的内容转储为文本请注意,Graeme Gill的ArgyllCMS是一种开源色彩管理软件,可用于Linux,Mac OSX和Windows,附带一整套命令行工具.其中之一是iccdump.我们可以用它来查看新赢的21.icm文件的属性:
iccdump 21.icm
icc:
Header:
size = 3144 bytes
CMM = 'Lino'
Version = 2.1.0
Device Class = Display
Color Space = RGB
Conn. Space = XYZ
Date, Time = 9 Feb 1998, 6:49:00
Platform = Microsoft
Flags = Not Embedded Profile, Use anywhere
Dev. Mnfctr. = 'IEC '
Dev. Model = 'sRGB'
Dev. Attrbts = Reflective, Glossy
Rndrng Intnt = Perceptual
Illuminant = 0.964203, 1.000000, 0.824905 [Lab 100.000000, 0.000498, -0.000436]
Creator = 'HP '
tag 0:
sig 'cprt'
type 'text'
offset 336
size 51
Text:
No. chars = 43
0x0000: Copyright (c) 1998 Hewlett-Packard Company
tag 1:
sig 'desc'
type 'desc'
offset 388
size 108
TextDescription:
ASCII data, length 18 chars:
0x0000: sRGB IEC61966-2.1
No Unicode data
ScriptCode Data, Code 0x0, length 18 chars
0x0000: 73 52 47 42 20 49 45 43 36 31 39 36 36 2d 32 2e 31 00
tag 2:
sig 'wtpt'
type 'XYZ '
offset 496
size 20
XYZArray:
No. elements = 1
tag 3:
sig 'bkpt'
type 'XYZ '
offset 516
size 20
XYZArray:
No. elements = 1
tag 4:
sig 'rXYZ'
type 'XYZ '
offset 536
size 20
XYZArray:
No. elements = 1
tag 5:
sig 'gXYZ'
type 'XYZ '
offset 556
size 20
XYZArray:
No. elements = 1
tag 6:
sig 'bXYZ'
type 'XYZ '
offset 576
size 20
XYZArray:
No. elements = 1
tag 7:
sig 'dmnd'
type 'desc'
offset 596
size 112
TextDescription:
ASCII data, length 22 chars:
0x0000: IEC http://www.iec.ch
No Unicode data
ScriptCode Data, Code 0x0, length 22 chars
0x0000: 49 45 43 20 68 74 74 70 3a 2f 2f 77 77 77 2e 69 65 63 2e 63 68 00
tag 8:
sig 'dmdd'
type 'desc'
offset 708
size 136
TextDescription:
ASCII data, length 46 chars:
0x0000: IEC 61966-2.1 Default RGB colour space - sRGB
No Unicode data
ScriptCode Data, Code 0x0, length 46 chars
0x0000: 49 45 43 20 36 31 39 36 36 2d 32 2e 31 20 44 65 66 61 75 6c 74 20
...
tag 9:
sig 'vued'
type 'desc'
offset 844
size 134
TextDescription:
ASCII data, length 44 chars:
0x0000: Reference Viewing Condition in IEC61966-2.1
No Unicode data
ScriptCode Data, Code 0x0, length 44 chars
0x0000: 52 65 66 65 72 65 6e 63 65 20 56 69 65 77 69 6e 67 20 43 6f 6e 64
...
tag 10:
sig 'view'
type 'view'
offset 980
size 36
Viewing Conditions:
XYZ value of illuminant in cd/m^2 = 19.644501, 20.371796, 16.808899
XYZ value of surround in cd/m^2 = 3.928894, 4.074387, 3.361786
Illuminant type = D50
tag 11:
sig 'lumi'
type 'XYZ '
offset 1016
size 20
XYZArray:
No. elements = 1
tag 12:
sig 'meas'
type 'meas'
offset 1036
size 36
Measurement:
Standard Observer = 1931 Two Degrees
XYZ for Measurement Backing = 0.000000, 0.000000, 0.000000 [Lab 0.000000, 0.000000, 0.000000]
Measurement Geometry = Unknown
Measurement Flare = 1.0%
Standard Illuminant = D65
tag 13:
sig 'tech'
type 'sig '
offset 1072
size 12
Signature
Technology = Cathode Ray Tube Display
tag 14:
sig 'rTRC'
type 'curv'
offset 1084
size 2060
Curve:
No. elements = 1024
tag 15:
sig 'gTRC'
type 'curv'
offset 1084
size 2060
Curve:
No. elements = 1024
tag 16:
sig 'bTRC'
type 'curv'
offset 1084
size 2060
Curve:
No. elements = 1024
PS:
ArgyllCMS包含一个命令行工具,extracticc可以从TIFF文件中提取嵌入的ICC配置文件.它没有从PDF文件中提取配置文件的工具.
| 归档时间: |
|
| 查看次数: |
4222 次 |
| 最近记录: |