X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=blobdiff_plain;f=scm%2Fframework-ps.scm;h=a9c5de2823dfc32271cf484f0f4d2dcc40f073b6;hb=dcb458c225534895f69f4c05137809d20d6a79b9;hp=2cd9b5edc619bd6e067081cbbd521a30a65ef386;hpb=50ba2171c6a88789ef5ed3673a4c6a4549400113;p=lilypond.git diff --git a/scm/framework-ps.scm b/scm/framework-ps.scm index 2cd9b5edc6..a9c5de2823 100644 --- a/scm/framework-ps.scm +++ b/scm/framework-ps.scm @@ -866,6 +866,22 @@ mark {ly~a_stream} /CLOSE pdfmark #t ))) +(define-public (output-crop-framework basename book scopes fields) + (let* ((paper (ly:paper-book-paper book)) + (systems (relevant-book-systems book))) + (dump-stencil-as-EPS paper + (stack-stencils Y DOWN 0.0 + (map paper-system-stencil + (reverse (reverse systems)))) + (format #f "~a.cropped" basename) + #t) + (postprocess-output book framework-ps-module + (cons "png" (ly:output-formats)) + (format #f "~a.cropped" basename) + (format #f "~a.cropped.eps" basename) + #t + ))) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (define (output-width-height defs)