pub fn parse_object(input: &[u8]) -> IResult<&[u8], Object>Expand description
Parse a PDF object from input bytes.
This is the main entry point for parsing PDF objects. It handles all PDF object types:
- Primitives: null, boolean, integer, real, string, name
- Composites: array, dictionary
- References: indirect object references (10 0 R)
§Example
use pdf_oxide::parser::parse_object;
let input = b"[ 1 2 /Name ]";
let (remaining, obj) = parse_object(input).unwrap();§Errors
Returns Err if:
- Input is not a valid PDF object
- Nested structures are malformed (unclosed arrays/dicts)
- Hex strings contain invalid hex digits