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:
parent
53d6e1db13
commit
6bfd9d9f44
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user