prawnpdf/prawn — pull request #361 by sos4nt (2012-06-15 10:16:30+00:00)
Title: Keep outline items when compacting object store

I noticed that the outline was missing when I created PDFs with `:optimize_objects => true`.

This is due to the way `compact` works: _"clear live markers"_ and then _"recursively mark reachable objects live, starting from the roots"_. Since outline items are not "reachable" from the outline root, they are not marked live.

I'm approaching this problem by not clearing live markers for outline items in the first place.