From 6bfd9d9f44c8fb3c8f1eb8f336f7d79e5f65757d Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 25 Oct 2013 20:54:32 -0300 Subject: [PATCH] genkicat/pdf.c (make_pdf): set paper size to A4 --- genkicat/pdf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/genkicat/pdf.c b/genkicat/pdf.c index b7d0d60..7611829 100644 --- a/genkicat/pdf.c +++ b/genkicat/pdf.c @@ -1,7 +1,7 @@ /* * pdf.c - Generate PDF * - * Copyright 2012 by Werner Almesberger + * Copyright 2012, 2013 by Werner Almesberger * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -346,8 +346,8 @@ void make_pdf(int pdf, int use_portrait, const char *title_page) format = &landscape; if (pdf) out = popen( - "gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=- " - "-f -", "w"); + "gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=a4 " + "-sOutputFile=- -f -", "w"); else out = popen("cat", "w"); if (!out) {