gEDA-user: how to print multiple pages from command line?
Peter TB Brett
peter at peter-b.co.uk
Wed Jul 25 15:05:22 EDT 2007
On Wednesday 25 July 2007 18:50:24 Duncan Drennan wrote:
> Having a look at the gschem man page
> (http://geda.seul.org/wiki/geda:gschem_mp) it looks like the theory is
> that you can use -o <file_name> along with -s <scrip_name> to perform
> some magic to print all the pages specified. Is this possible? Is it
> possibly easy, or will many hours of reading be required? Where do I
> start looking to figure out how to do that?
Here's a Makefile snippet from one of my projects. Note the steppers-new.pdf
target which magically compiles several schematic pages into a single
document.
# List of PDF files to build
PDFFILES=gpio-existing-ip.pdf gpio-new.pdf steppers-existing.pdf \
steppers-new.pdf
%.pdf: %.ps
ps2pdf $< $@
%.ps: %.sch
gschem -p -s /home/peter/geda/share/gEDA/scheme/print.scm
-o $@ $<
all: $(PDFFILES)
clean:
-rm -f *.ps *.pdf gschem.log
extra-clean: clean
-rm -f *~
steppers-new.pdf: steppers-new-1.ps steppers-new-2.ps
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite \
-dAutoRotatPages=/All -sOutputFile=$@ $^
--
Peter Brett
Electronic Systems Engineer
Integral Informatics Ltd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://www.seul.org/pipermail/geda-user/attachments/20070725/b433d099/attachment.pgp
More information about the geda-user
mailing list