2015-08-26 72 views
0

我知道0002是PDF文件中的對象編號。最後一列(從01到07)名稱是「索引」(在pdf參考文件中)但01,02,03,04,05,06和07是什麼意思?他們在哪裏指向對象2?我沒有明白。PDF交叉引用流

這裏是交叉參考流:

stream 01 0E8A 0 % Entry for object 2 (0x0E8A = 3722) 
    SyntaxCHAPTER 3 114 
    02 0002 00 % Entry for object 3 (in object stream 2, index 0) 
    02 0002 01 % Entry for object 4 (in object stream 2, index 1) 
    02 0002 02 % … 
    02 0002 03 
    02 0002 04 
    02 0002 05 
    02 0002 06 
    02 0002 07 % Entry for object 10 (in object stream 2, index 7) 
    01 1323 0 % Entry for object 11 (0x1323 = 4899) 
    endstream 

和這裏是例如PDF文檔中的第二個目的:

2 0 obj  % The object stream, at offset 3722 
    <</Length  ... 
    /N 8   % This stream contains 8 objects. 
    /First 47  % The stream-offset of the first object 
    >> 
    stream 
    3 0 4 50 5 72 … % The numbers and stream-offsets of the 8 objects 
    <</Type /StructTreeRoot % This is object 3. 
    /K 4 0 R 
    /RoleMap 5 0 R 
    /ClassMap 6 0 R 
    /ParentTree 7 0 R 
    /ParentTreeNextKey 8 
    >> 
    << /S /Workbook  % This is object 4 (K value from StructTreeRoot). 
    /P 8 0 R 
    /K 9 0 R 
    >> 
    <</Workbook /Div  % This is object 5 (RoleMap). 
    /Worksheet /Sect 
    /TextBox /Figure 
    /Shape /Figure 
    >> 
    … % Objects 6 through 10 are defined here. 
    endstream 
    endobj 
+0

*但是01,02,03,04,05,06和07是什麼意思?它們指向對象2的位置?* - 列表中的索引'3 0 4 50 5 72 ...%數字對的8個對象的數量和流偏移量 – mkl

回答

0

看起來PDF 32000 standard

內部。根據橫參考流「章節中,有三種類型的條目在外部參照流中呈現。

這些條目(第一個字節= 02)告訴我們它們位於壓縮流對象#2中。第三個字段對於這個壓縮流內的對象數量有意義