【发布时间】:2014-01-07 15:28:09
【问题描述】:
我正确编码了我的 PNG 图像。它是灰度,8 位。图像为 5100(w) x 6600(h)。 MediaBox 是 5100.0 6600.0。
图片:
3 0 obj
<<
/ProcSet [/PDF /ImageB]
/XObject <<
/Im8 8 0 R
>>
>>
endobj
8 0 obj
<<
/Type /XObject
/Subtype /Image
/BitsPerComponent 8
/ColorSpace /DeviceGray
/Height 6600
/Width 5100
/Filter /FlateDecode
/Length 590065
>>
stream
....zlib compressed stream
图像变换:
9 0 obj
<</Length 54>>
stream
q
5100 0 0 6600 0 0 cm
/Im8 Do
Q
endstream
endobj
页面:
10 0 obj
<<
/Type /Page
/Parent 2 0 R
/CropBox [0.0 0.0 5100.0 6600.0]
/MediaBox [0.0 0.0 5100.0 6600.0]
/Resources 3 0 R
/Contents [ ]
>>
endobj
图片未显示。我逐像素验证。
流总共包含 33666600 (5100x6600 + 6600) 字节。其中 6600 个表示使用的预测器。就我而言,它是 /Predictor 13。
我写了这 33666600 个字节,即只压缩了 IDAT。
也许是坐标? 压缩? 我在这里错过了什么?
【问题讨论】:
-
如果你的Contents真的是
[ ](即空),你的图片会怎么显示?
标签: pdf-generation png fpdf