1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-22 08:23:09 +02:00

genkicat/pdf.c (make_pdf): set paper size to A4

This commit is contained in:
Werner Almesberger 2013-10-25 20:54:32 -03:00
parent 53d6e1db13
commit 6bfd9d9f44

View File

@ -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) {