mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 04:41:33 +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
|
* 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
|
* 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
|
* 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;
|
format = &landscape;
|
||||||
if (pdf)
|
if (pdf)
|
||||||
out = popen(
|
out = popen(
|
||||||
"gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=- "
|
"gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=a4 "
|
||||||
"-f -", "w");
|
"-sOutputFile=- -f -", "w");
|
||||||
else
|
else
|
||||||
out = popen("cat", "w");
|
out = popen("cat", "w");
|
||||||
if (!out) {
|
if (!out) {
|
||||||
|
Loading…
Reference in New Issue
Block a user