mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-16 19:15:20 +02:00
genex/pdf.c: changed page orientation from landscape to portrait
Most components are taller than wider.
This commit is contained in:
parent
7f0bf74198
commit
8e8a3c56c6
18
genex/pdf.c
18
genex/pdf.c
@ -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 -",
|
||||
|
Loading…
Reference in New Issue
Block a user