PDF Document: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(5 intermediate revisions by the same user not shown)
Line 4: Line 4:
* ''' Format Type ''':    Document <br>  
* ''' Format Type ''':    Document <br>  
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>
* ''' Signature ''':    %PDF-1.5 <br>  
* ''' Signature ''':    %PDF- / %PDF-1.5 <br>  




Line 11: Line 11:
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:900px; overflow:auto;">
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:900px; overflow:auto;">
<pre>
<pre>
//header
// header
8 bytes (char) - signature // e.g. "%PDF-1.5"
8 bytes (char) - signature // e.g. "%PDF-1.5"


// body
x bytes - body
x bytes - body


// cross-ref table
x bytes - cross-reference table
x bytes - cross-reference table


Line 21: Line 25:
// trailer (file footer)
// trailer (file footer)
{
{
   9 bytes (char) - trailer keyword  // "trailer"
   9 bytes (char) - trailer keyword + "\n"   // "trailer"
   x bytes - trailer dictionary // e.g.  "<</Size 19/Root 1 0 R/ ... >>"
   x bytes - trailer dictionary // e.g.  "<</Size 19/Root 1 0 R/ ... >>"
   11 bytes (char) - startxref keyword  // "startxref"
   11 bytes (char) - startxref keyword + "\n" // "startxref"
   7 bytes (char) - offset from the beginning of the file to the beginning of the xref keyword
   7 bytes (char) - offset from the beginning of the file to the beginning of the xref keyword
   4 bytes (char) - end of file marker  // "%%EOF"
   4 bytes (char) - end of file marker  // "%%EOF"

Latest revision as of 21:26, 12 February 2022

Back to index | Edit this page

PDF

  • Format Type : Document
  • Endian Order : Little Endian
  • Signature : %PDF- / %PDF-1.5


Format Specifications

// header
8 bytes (char) - signature // e.g. "%PDF-1.5"


// body
x bytes - body


// cross-ref table
x bytes - cross-reference table


// trailer (file footer)
{
   9 bytes (char) - trailer keyword + "\n"   // "trailer"
   x bytes - trailer dictionary // e.g.  "<</Size 19/Root 1 0 R/ ... >>"
   11 bytes (char) - startxref keyword + "\n"  // "startxref"
   7 bytes (char) - offset from the beginning of the file to the beginning of the xref keyword
   4 bytes (char) - end of file marker   // "%%EOF"
}

Notes and Comments

None.

Games

List of games using this file format:

  • TODO

QuickBMS Script

Not written yet.

Compatible Programs

  • Adobe Reader
  • PDF-XChange Viewer

See Also