<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,8 @@
+v0.7.6 (XXX)
+- Treat float and integer tokens differently (thanks Neil)
+- Correctly handle PDFs where the Kids element of a Pages dict is an indirect
+  refernce (thanks Rob Holland)
+
 v0.7.5 (27th August 2008)
 - Fix a 1.8.7ism
 </diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -61,7 +61,8 @@ class PDF::Reader
       when &quot;&gt;&gt;&quot;, &quot;]&quot;, &quot;&gt;&quot;             then return Token.new(token)
       else
         if operators.has_key?(token)  then return Token.new(token)
-        else                          return token.to_f
+        elsif token =~ /\d*\.\d/      then return token.to_f
+        else                          return token.to_i
         end
       end
     end</diff>
      <filename>lib/pdf/reader/parser.rb</filename>
    </modified>
    <modified>
      <diff>@@ -149,7 +149,7 @@ EOT
     dict.size.should eql(3)
     dict[:Registry].should    eql(&quot;Adobe&quot;)
     dict[:Ordering].should    eql(&quot;Japan1&quot;)
-    dict[:Supplement].should  eql(5.0)
+    dict[:Supplement].should  eql(5)
   end
 
   specify &quot;should parse an array correctly&quot; do</diff>
      <filename>specs/parser_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -47,7 +47,7 @@ context &quot;The PDF::Reader::XRef class when operating on the cairo-basic PDF&quot; do
     ref = PDF::Reader::Reference.new(6,0) 
     @xref.load
     cursor = @buffer.pos
-    @xref.object(ref,false).should eql(267.0)
+    @xref.object(ref,false).should eql(267)
   end
 end
 </diff>
      <filename>specs/xref_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7f7b8285ba2584636e49c5c34ffb48b2b632d8e8</id>
    </parent>
  </parents>
  <author>
    <name>James Healy</name>
    <email>jimmy@deefa.com</email>
  </author>
  <url>http://github.com/yob/pdf-reader/commit/2f503919a4aade5463458d8e26780683e935e2bd</url>
  <id>2f503919a4aade5463458d8e26780683e935e2bd</id>
  <committed-date>2008-12-08T06:56:55-08:00</committed-date>
  <authored-date>2008-12-08T06:56:55-08:00</authored-date>
  <message>treat float and int tokens differently
- thanks to Neil for suggesting this
- See http://groups.google.com/group/pdf-reader/browse_thread/thread/ac164f050e7bccbd
- TODO: Not really happy with using a regexp to detect floats for speed
  reasons. Need to look at replacing it with something else</message>
  <tree>c3991d73ffbb92997692baa45d0a98cfdf1321db</tree>
  <committer>
    <name>James Healy</name>
    <email>jimmy@deefa.com</email>
  </committer>
</commit>
