I read the comments in src/object/pdf-obj.h and get confused
Some flags are stored in the 'f' field:
- Bit 0: 0 => Direct object. 1 => Indirect object.
- Bits 15..1: Type of the object:
+ 0 => Null.
+ 1 => Boolean.
+ 2 => Integer.
+ 3 => Real.
+ 4 => Name.
+ 5 => String.
+ 6 => Array.
+ 7 => Dictionary.
+ 8 => Stream.
- Bits 31..16: Unused.
Does it means
if (set bit 1) => Null, (set bit 2) => Boolean, ..., (set bit 8) => Stream
or means
if (Bits 15..1 == 0) => Null, (Bits 15..1 == 2) => Boolean, ..., (Bits 15..1
== 8) => Stream
--------------
Best Regards,
Jin Chen-Xin