diff options
author | Kurt <kurt.w.jung@gmail.com> | 2016-02-18 16:00:22 -0500 |
---|---|---|
committer | Kurt <kurt.w.jung@gmail.com> | 2016-02-18 16:00:22 -0500 |
commit | b799c70389290d191c0ec9fba5a2e2b15df96574 (patch) | |
tree | c1ea503eb90afbc7c3cf1a0136adbff8502be906 /contrib/ghostscript | |
parent | c3b07a69f6cea491b176205188e3451c91b9c96f (diff) |
Factor example filenames
Diffstat (limited to 'contrib/ghostscript')
-rw-r--r-- | contrib/ghostscript/ghostscript.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/contrib/ghostscript/ghostscript.go b/contrib/ghostscript/ghostscript.go index f9e5c4f..2b695b8 100644 --- a/contrib/ghostscript/ghostscript.go +++ b/contrib/ghostscript/ghostscript.go @@ -36,13 +36,11 @@ func newPdf() (pdf *gofpdf.Fpdf) { return } -func full() { - const name = "full.pdf" +func full(name string) { report(name, newPdf().OutputFileAndClose(name)) } -func min() { - const name = "min.pdf" +func min(name string) { cmd := exec.Command("gs", "-sDEVICE=pdfwrite", "-dCompatibilityLevel=1.4", "-dPDFSETTINGS=/screen", "-dNOPAUSE", "-dQUIET", @@ -61,6 +59,6 @@ func min() { } func main() { - full() - min() + full("full.pdf") + min("min.pdf") } |