1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 05:29:52 +02:00

gencat/fped.c (fped_ps_entry): scale footprint to a height of 200 mm and center

This commit is contained in:
Werner Almesberger 2012-07-12 18:19:30 -03:00
parent 9d278a0ab5
commit ae3b8128b0

View File

@ -47,7 +47,8 @@ static void fped_add_lib(struct lib *lib, const char *path)
static void fped_ps_entry(FILE *file, const struct lib *lib,
const struct entry *e, int unit, int landscape)
{
run_cmd("fped -P '%s' -1 '%s' '%s'",
fprintf(file, "0 -25 translate\n");
run_cmd("fped -P -s x200 '%s' -1 '%s' '%s'",
e->file->path, e->names->s, "tmp.ps");
run_cmd("sed -i -e '/OUT pdfmark/d' tmp.ps");
cat(file, "tmp.ps");