Adding outline/ToC entries for inserted PDF.

Currently broken: the document before merging works ok but after merging links
don't work anymore. Probably the target pages have some element that we lost in
the replacement, so we should find that element and inject in back after
merging. Let's take a look at a pdf dump...