1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 09:53:21 +02:00

genex/pdf.c: changed page orientation from landscape to portrait

Most components are taller than wider.
This commit is contained in:
Werner Almesberger 2012-04-17 08:05:11 -03:00
parent 7f0bf74198
commit 8e8a3c56c6

View File

@ -29,7 +29,7 @@ static struct format {
int y;
} name, path, lib, comment;
int comment_line_skip;
} format = {
} landscape = {
.file_setup = "",
.overlay_setup = "90 rotate",
.comp_setup = "",
@ -39,7 +39,17 @@ static struct format {
.lib = { "Courier", 12, 75 },
.comment = { "Helvetica", 12, 600 },
.comment_line_skip = 14,
};
}, portrait = {
.file_setup = "%%Orientation: Portrait",
.overlay_setup = "0 790 translate",
.comp_setup = "-120 700 translate -90 rotate",
.left = 20,
.name = { "Helvetica-Bold", 24, 57 },
.path = { "Helvetica-Bold", 18, 30 },
.lib = { "Courier", 12, 75 },
.comment = { "Helvetica", 12, 740 },
.comment_line_skip = 14,
}, format;
static int children(const struct node *node)
@ -206,6 +216,10 @@ void make_pdf(void)
FILE *out;
int res;
if (0)
format = landscape;
else
format = portrait;
#if 0
out = popen(
"gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=- -f -",