From cbf569e4d6249a76730d80da73219c12ce863cea Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Wed, 24 Jul 2013 12:47:40 +0200 Subject: [PATCH] Issue 3388: -dpreview retains non-working page links in table of contents This just disables mark_page_link in the EPS header. When including EPS files in LilyPond itself, BeginEPSF and EndEPSF should limit the effect of this redefinition to the EPS file itself, restoring the userdict afterwards. --- scm/framework-ps.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/scm/framework-ps.scm b/scm/framework-ps.scm index 7a9fb454ff..3517f90ebb 100644 --- a/scm/framework-ps.scm +++ b/scm/framework-ps.scm @@ -539,6 +539,7 @@ (header (eps-header paper rounded-bbox load-fonts))) (display header port) (write-preamble paper load-fonts port) + (display "/mark_page_link { pop pop pop pop pop } bind def\n" port) (display "gsave set-ps-scale-to-lily-scale\n" port) (ly:outputter-dump-stencil outputter dump-me) (display "stroke grestore\n%%Trailer\n%%EOF\n" port) -- 2.39.2