I am tying to parse pdf files with kaitai-struct. The main entry point into the document structure is located at the end of the stream.
trailer << /R