12.11.2012 Views

ijpds formats.book - Kodak

ijpds formats.book - Kodak

ijpds formats.book - Kodak

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix D. Indexing and Multi-File IJPDS<br />

Basic Index Files (for Single-File IJPDS Jobs)<br />

Basic Index Files (for Single-File IJPDS Jobs)<br />

D - 2 IJPDS Formats<br />

For GEORGE.IJP the index file is GEORGE.NDX in the same directory.<br />

An index file is a file of two or more 32-bit words which are file offsets into<br />

the IJPDS file. Each word is the offset to the block containing the<br />

document being indexed (not the offset of the SDC). Words are 32-bit (it<br />

does not matter if they are signed or unsigned; the maximum value is<br />

2GB, not 4GB) integers in Intel byte-order. (The OS/2-hosted Pentium<br />

controller will use the values directly in fseek() operations.)<br />

The first word is the offset to the block containing the earliest SDC for<br />

Document 1 (whichever RIP that may be); this is always present.<br />

The last word is the offset to the block containing the earliest SDC for the<br />

last document (whichever RIP that may be); this is always present.<br />

If the IJPDS file has more than 99 documents, then additional words are<br />

in the index file (between the first word and the last word) with offsets to<br />

the blocks containing the earliest SDCs for Documents 100, 200, 300,<br />

400, etc. If the file ends with a document number that is a multiple of 100,<br />

then the next-to-last index entry will be the pointer for the last multiple-of-<br />

100 document, and the last entry will be, as always, the pointer to the last<br />

document (even though in this case the last two entries are the same).<br />

Here are some example index files:<br />

IJPDS file Index file<br />

87 documents 2 entries<br />

125 documents 3 entries<br />

800 documents 10 entries<br />

801 documents 10 entries<br />

Entries<br />

for<br />

document<br />

1<br />

87<br />

1<br />

100<br />

125<br />

1<br />

100<br />

200<br />

300<br />

400<br />

500<br />

600<br />

700<br />

800<br />

800<br />

1<br />

100<br />

200<br />

300<br />

400<br />

500<br />

600<br />

700<br />

800<br />

801

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!