Bug 695760

Summary: Make more effort to preserve Names tree from input PDF
Product: Ghostscript Reporter: Ken Sharp <ken.sharp>
Component: PDF InterpreterAssignee: Ken Sharp <ken.sharp>
Status: CONFIRMED ---    
Severity: enhancement CC: ab, trueroad
Priority: P4    
Version: master   
Hardware: All   
OS: All   
Customer: Word Size: ---

Description Ken Sharp 2014-12-23 04:22:15 UTC
See bug #695747 if we have an input PDF file with Named destinations (stored in a Names tree) we don't attempt to preserve the Named destinations. Instead we dereference any annotations which use the Named destinations and embed specific Dests.

This is fine for a stand-alone PDF file, but if any external file references the produced file via a GoToR (Go To Remote) link, then that will fail with the new file, as we didn't preserve the named destination.

Instead we should preserve (or rather rebuild) the Names tree, and as an enhancement preserve the names in any links which originally used them.
Comment 1 Ken Sharp 2016-07-22 13:15:37 UTC
*** Bug 696943 has been marked as a duplicate of this bug. ***