ex­tract­pdf­mark – Ex­tract page mode and named des­ti­na­tions as PDF­mark from PDF

PDF­marks is a tech­nique that ac­com­pa­nies PDF and that is used to
store meta­data such as au­thor or ti­tle, but also struc­tural
in­for­ma­tion such as book­marks or hy­per­links.

When Ghostscript reads the main PDF gen­er­ated by the TeX sys­tem
with em­bed­ded PDF files and out­puts the fi­nal PDF, the PDF page
mode and name tar­gets etc. are not pre­served. There­fore, when
you open the fi­nal PDF, it is not dis­played cor­rectly. Also,
re­mote PDF links do not work cor­rectly.

This pro­gram is able to ex­tract the page mode and named tar­gets
as PDF­mark from PDF. In this way, you can ob­tain em­bed­ded PDF
files that have kept this in­for­ma­tion.