I've written TIFF readers.

Same sort of deal. It's really easy to write a TIFF; not so easy to read one.

Looks like PDF is much the same.