A file-format for documents that can be viewed on a web-browser.
Structure
Header
Specifies the version number of a pdf
%PDF-2.0
Body
Comprised of:
- Comments -
%commentends at\n - Names β
/name - Strings β
(text) - Arrays β
([...]) - Dictionaries β
(<<...>>). The key is a name object and the value can be any other object. - Streams β contains data, images or code. Often compressed. Represented by a dictionary that set the streamβs length with the key
/Lengthand encoding/Filters. - Indirect object β object that has a unique ID, the object starts with the keyboard
objand ends withendobjother objects can reference the object using its ID. For example a reference to object with ID 3 we would look like this:3 0 R