No love from PDF::Writer on Mac OS X 10.4.1.  I hope to get this fixed
as I'm really looking forward to using this library.  Thanks for all
the hard work Austin!

Installed via gem, accepted the dependencies.

legolas:~ jason$ ruby -v
ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]

Here is the error.  My wild guess would be this is an Endian-ness
issue when reading in the images, but I don't have any evidence to
back up that claim, nor do I have the knowledge to figure it out
myself.  If any more info is required I will surely oblige.

legolas:~ jason$ techbook
Using default document '/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/
lib/pdf/../../manual.pwd'.

Error in document around line 205:
  /usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/writer/
graphics/imageinfo.rb:176:in `measure_JPEG': JPEG marker not found!
Backtrace:
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/techbook.rb:
690:in `techbook_directive_endeval'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/writer/graphics/
imageinfo.rb:174:in `loop'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/writer/graphics/
imageinfo.rb:174:in `measure_JPEG'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/writer/graphics/
imageinfo.rb:85:in `__send__'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/writer/graphics/
imageinfo.rb:85:in `initialize'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/writer/
graphics.rb:546:in `new'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/writer/
graphics.rb:546:in `add_image'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/writer/
graphics.rb:537:in `add_image_from_file'
(eval):43:in `techbook_directive_endeval'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/techbook.rb: 686:in `eval'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/techbook.rb:
690:in `techbook_directive_endeval'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/techbook.rb:
686:in `initialize'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/techbook.rb: 686:in `new'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/techbook.rb:
686:in `techbook_directive_endeval'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/techbook.rb:
547:in `__send__'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/techbook.rb:
547:in `techbook_parse'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/techbook.rb: 536:in `each'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/techbook.rb:
536:in `techbook_parse'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/techbook.rb: 874:in `run'
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/bin/techbook:24
/usr/bin/techbook:18:in `load'
/usr/bin/techbook:18
/usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/techbook.rb:
690:in `techbook_directive_endeval': /usr/lib/ruby/gems/1.8/gems/pdf-
writer-1.0.1/lib/pdf/writer/graphics/imageinfo.rb:176:in 
`measure_JPEG': JPEG marker not found! (RuntimeError)
        from /usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/
writer/graphics/imageinfo.rb:174:in `loop'
        from /usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/
writer/graphics/imageinfo.rb:174:in `measure_JPEG'
        from /usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/
writer/graphics/imageinfo.rb:85:in `__send__'
        from /usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/
writer/graphics/imageinfo.rb:85:in `initialize'
        from /usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/
writer/graphics.rb:546:in `new'
        from /usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/
writer/graphics.rb:546:in `add_image'
        from /usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/
writer/graphics.rb:537:in `add_image_from_file'
        from (eval):43:in `techbook_directive_endeval'
         ... 9 levels...
        from /usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/lib/pdf/
techbook.rb:874:in `run'
        from /usr/lib/ruby/gems/1.8/gems/pdf-writer-1.0.1/bin/ techbook:24
        from /usr/bin/techbook:18:in `load'
        from /usr/bin/techbook:18
Exception   around line  0.


Thanks!

Jason