生成的 PDF 显示空白页

Generated PDF displaying empty pages

我正在为嵌入式系统编写 PDF 生成器,但我似乎无法渲染它。这是我目前所拥有的 http://pastebin.com/20DQiGfb。 ghostscript 和 RUPS 都没有显示任何语法错误,我检查过的每个 PDF 查看器都显示空白页。我已经验证语法、偏移量、结构都没有问题。我只是不明白。 也许有人可以建议我可以尝试的另一种工具?也许可以让我检查视觉元素?

编辑:添加完整文件以供下载 https://drive.google.com/file/d/0B8ljtiq-2gIJcTBFR2tjRGxVOFk/view?usp=sharing

EDIT2:Acrobat/Preflight也没有发现错误

这些是你的词典:

7 0 obj
<<  /Type      /Page         
    /Parent    9 0 R        
    /Resources 2 0 R        
    /Content   3 0 R        
    /MediaBox  [0 0 612 792] 
>>
endobj

8 0 obj
<<  /Type      /Page         
    /Parent    9 0 R        
    /Resources 2 0 R        
    /Content   5 0 R        
    /MediaBox  [0 0 612 792] 
>>
endobj 

但是内容流的正确键是 Contents!

Contents stream or array (Optional) A content stream (see 7.8.2, "Content Streams") that shall describe the contents of this page. If this entry is absent, the page shall be empty.

(Table 30 – Entries in a page object - ISO 32000-1)

添加缺失的 s 个字符后,我看到: