[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pdf-devel] 'f' field in pdf_obj_t
From: |
Jin Chen-Xin |
Subject: |
[pdf-devel] 'f' field in pdf_obj_t |
Date: |
Fri, 13 May 2011 12:05:10 +0800 |
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
- [pdf-devel] 'f' field in pdf_obj_t,
Jin Chen-Xin <=