找不到PDF xref

时间:2014-10-26 19:44:49

标签: pdf pdf-generation

使用online PDF validator, 生成的基本PDF无法找到xref,并说出了遗漏endobj的内容。检查startxref值,似乎xref从开头起是473个字节,并且所有obj都有相应的endobj

此PDF的内容无效?

%PDF-1.4
%‚„œ”
1 0 obj
<<>>
endobj
2 0 obj
<</Type /Pages/Count 1/MediaBox [0,0,612,792]/Kids [ 4 0 R ]/Resources <</Font []/XObject 1 0 R/ProcSet [ /PDF , /Text , /ImageC ]>>>>
endobj
3 0 obj
<</Length 6>>
stream
Walrus
endstream
endobj
4 0 obj
<</Type /Page/Parent 2 0 R/Contents 3 0 R>>
endobj
5 0 obj
<</Type /Catalog/Pages 2 0 R>>
endobj
6 0 obj
<</Title ()/Author ()/Creator (Elixir)/Subject ()/Producer (Gutenex)/Keywords ()/CreationDate (D:20141025152323)>>
endobj
xref
0 7
0000000000 65535 f 
0000000015 00000 n 
0000000035 00000 n 
0000000185 00000 n 
0000000238 00000 n 
0000000297 00000 n 
0000000343 00000 n 

trailer
<<
/Size 7 0 R
/Root 5 0 R
/Info 6 0 R
>>
startxref
473
%%EOF

1 个答案:

答案 0 :(得分:0)

  • “预告片”字典中的“你的/大小”键指向对象 '7 0 R' ,它不存在。我想你的意思是/大小7 ...
  • 您的数组不应以逗号分隔
  • 对象 '3 0 obj' 中的海象不是操作数和运算符的有效内容流

    %PDF-1.4
    %‚„œ”
    1 0 obj
    <<>>
    endobj
    2 0 obj
    <</Type /Pages/Count 1/MediaBox [0 0 612 792]/Kids [ 4 0 R ]/Resources <</Font []/XObject 1 0 R/ProcSet [ /PDF /Text /ImageC ]>>>>
    endobj
    3 0 obj
    <</Length 0>>
    stream
    endstream
    endobj
    4 0 obj
    <</Type /Page/Parent 2 0 R/Contents 3 0 R>>
    endobj
    5 0 obj
    <</Type /Catalog/Pages 2 0 R>>
    endobj
    6 0 obj
    <</Title ()/Author ()/Creator (Elixir)/Subject ()/Producer (Gutenex)/Keywords ()/CreationDate (D:20141025152323)>>
    endobj
    xref
    0 7
    0000000000 65535 f 
    0000000015 00000 n 
    0000000035 00000 n 
    0000000181 00000 n 
    0000000227 00000 n 
    0000000286 00000 n 
    0000000332 00000 n 
    
    trailer
    <<
    /Size 7
    /Root 5 0 R
    /Info 6 0 R
    >>
    startxref
    462
    %%EOF