PDF 内部構造 構造の概念 簡単な説明 新しいページはコチラ
提供: yonewiki
(→概要) |
(→概要) |
||
3行: | 3行: | ||
− | + | PDFファイルのテキストが一つあるだけのシンプルな構造のファイルは以下のようになります。 | |
− | <syntaxhighlight2 lang="text"> | + | <syntaxhighlight2 lang="text" line=1> |
− | + | %PDF-1.7 | |
+ | %★(適当な129~255までの値を何バイトか) | ||
+ | 1 0 obj | ||
+ | << /Type /Pages | ||
+ | /Count 1 | ||
+ | /Kids [2 0 R] | ||
+ | >> | ||
+ | endobj | ||
+ | 2 0 obj | ||
+ | << /Type /Page | ||
+ | /MediaBox [0 0 ★(xx xx)] | ||
+ | /Resources 3 0 R | ||
+ | /Parent 1 0 R | ||
+ | /Contents [4 0 R] | ||
+ | >> | ||
+ | endobj | ||
+ | 3 0 obj | ||
+ | << /Font | ||
+ | << /F0 | ||
+ | << /Type /Font | ||
+ | /BaseFont /Times-Italic | ||
+ | /Subtype /Type1 >> | ||
+ | >> | ||
+ | >> | ||
+ | endobj | ||
+ | 4 0 obj | ||
+ | << | ||
+ | /length ★(xx) | ||
+ | >> | ||
+ | stream | ||
+ | 1. 0. 0. 1. ★(xx. xx). cm | ||
+ | BT | ||
+ | /F0 12. Tf | ||
+ | (PDF Strings! Parts) Tj | ||
+ | ET | ||
+ | endstream | ||
+ | endobj | ||
+ | 5 0 obj | ||
+ | << /Type /Catalog | ||
+ | /Pages 1 0 R | ||
+ | >> | ||
+ | endobj xref | ||
+ | 0 6 | ||
+ | 0000000000 65535 f | ||
+ | 0000000★(xxx) 00000 n | ||
+ | 0000000★(xxx) 00000 n | ||
+ | 0000000★(xxx) 00000 n | ||
+ | 0000000★(xxx) 00000 n | ||
+ | 0000000★(xxx) 00000 n | ||
+ | trailer | ||
+ | << /Size 6 | ||
+ | /Root 5 0 R | ||
+ | >> | ||
+ | startxref | ||
+ | ★(xx) | ||
+ | %%EOF | ||
+ | |||
</syntaxhighlight2> | </syntaxhighlight2> |