pdf contents 页对象

https://blog.csdn.net/chym_200888/article/details/2742351

pages对象(页面组对象),/Type /Pages 说明自身的属性,对象的类型为页码,/Count 1说明页码数量为1/Kids [4 0 R]说明它的孩子、页的对象号为4,如果有多个页面,就有多个页面对象的引用,例如/Kids [4 0 R 10 0 R], 就说明该PDF的第一页的对象号是4,第二页的对象号是10

 4 0 obj

<<

 /Type /Page

 /Parent 3 0 R

/Resources << /Font << /F1 7 0 R >> /ProcSet 6 0 R >>

/MediaBox [0 0 612 792]

/Contents 5 0 R

>>

 endobj

自己文档:

4 0 obj
<</Count 3/Kids [5 0 R 12 0 R 14 0 R]/Type /Pages>>
endobj
5 0 obj
<</Contents 6 0 R/MediaBox [0 0 595 842]/Parent 4 0 R/Resources <</Font <</F1 7 0 R>>>>/Rotate 0/Type /Page>>
endobj

12 0 obj
<</Contents 13 0 R/MediaBox [0 0 595 842]/Parent 4 0 R/Resources <</Font <</F1 7 0 R>>>>/Rotate 0/Type /Page>>
endobj

5 0 obj
<</Contents 6 0 R/MediaBox [0 0 595 842]/Parent 4 0 R/Resources <</Font <</F1 7 0 R>>>>/Rotate 0/Type /Page>>
endobj

 

2.

页对象,/Parent 3 0 R说明其父对象的对象号为3,及Pages对象,/Resources << /Font << /F1 7 0 R >> /ProcSet 6 0 R >>说明该页所要包含的资源,包括字体和内容的类型,/MediaBox [0 0 612 792]说明页面的显示大小(以象素为单位),/Contents 5 0 R说明页面内容对象的对象号为5

5 0 obj <</Contents 6 0 R/MediaBox [0 0 595 842]/Parent 4 0 R/Resources <</Font <</F1 7 0 R>>>>/Rotate 0/Type /Page>>
endobj

 

posted on 2020-01-19 10:11  lydstory  阅读(515)  评论(0)    收藏  举报

导航