使用我由 js 創建的以下 pdf 檔案。
http://www.dnpi.com.hk/errorfile.pdf
我可以用 Chrome/Mobile 完美打開。
但在 Adob??e Acrobat DC 上收到錯誤訊息“期望一個 Dict 物件”。
下面是用 Chrome 打開的檔案的影像。
有人知道這是怎么發生的嗎?
在此處輸入圖片說明
uj5u.com熱心網友回復:
此 PDF 檔案在 xpdf 中產生錯誤:
$ xpdf ~/git/david-cv/errorfile.pdf
Syntax Error (174): Dictionary key must be a name object
Syntax Error (176): Dictionary key must be a name object
Syntax Error (180): Dictionary key must be a name object
Syntax Error (182): Dictionary key must be a name object
Syntax Error (191): Dictionary key must be a name object
Syntax Error: Kid object (page 1) is wrong type (stream)
好像是在反對這個page 1物件。
在文本編輯器中打開,這個PDF,第1頁物件有問題:
3 0 obj
<</Type /Page
/Parent 1 0 R
/Resources 2 0 R
/MediaBox [0 0 595.28 841.89]
/Contents 4 0 R
endobj
它缺少>>Page 字典物件的結尾。
PDF 檔案不正確,盡管 Chrome/Mobile 似乎能夠恢復它。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/392221.html
標籤:pdf
下一篇:具有延遲的交錯連續影片
