mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-16 19:20:39 +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;
|
int y;
|
||||||
} name, path, lib, comment;
|
} name, path, lib, comment;
|
||||||
int comment_line_skip;
|
int comment_line_skip;
|
||||||
} format = {
|
} landscape = {
|
||||||
.file_setup = "",
|
.file_setup = "",
|
||||||
.overlay_setup = "90 rotate",
|
.overlay_setup = "90 rotate",
|
||||||
.comp_setup = "",
|
.comp_setup = "",
|
||||||
@ -39,7 +39,17 @@ static struct format {
|
|||||||
.lib = { "Courier", 12, 75 },
|
.lib = { "Courier", 12, 75 },
|
||||||
.comment = { "Helvetica", 12, 600 },
|
.comment = { "Helvetica", 12, 600 },
|
||||||
.comment_line_skip = 14,
|
.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)
|
static int children(const struct node *node)
|
||||||
@ -206,6 +216,10 @@ void make_pdf(void)
|
|||||||
FILE *out;
|
FILE *out;
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
|
if (0)
|
||||||
|
format = landscape;
|
||||||
|
else
|
||||||
|
format = portrait;
|
||||||
#if 0
|
#if 0
|
||||||
out = popen(
|
out = popen(
|
||||||
"gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=- -f -",
|
"gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=- -f -",
|
||||||
|
Loading…
Reference in New Issue
Block a user