Date:2011-02-07 00:04:05 (13 years 1 month ago)
Author:Werner Almesberger
Commit:e7a2cdce34541ce82f62465b009c0ca788f90537
Message:fpd2pdf: added option -P to select full-page drawings

Files: fpd2pdf/fpd2pdf (5 diffs)

Change Details

fpd2pdf/fpd2pdf
22#
33# fpd2pdf - Print a set of Fped files into a PDF
44#
5# Written 2010 by Werner Almesberger
6# Copyright 2010 Werner Almesberger
5# Written 2010-2011 by Werner Almesberger
6# Copyright 2010-2011 Werner Almesberger
77#
88# This program is free software; you can redistribute it and/or modify
99# it under the terms of the GNU General Public License as published by
...... 
1515usage()
1616{
1717    cat <<EOF 1>&2
18usage: $0 [-a] [-o out.pdf] file.fpd ...
18usage: $0 [-a] [-o out.pdf] [-P] file.fpd ...
1919
2020  -a also include files whose name contains a tilde (backup files)
2121  -o out.pdf write to the specified file (default: standard output)
22  -P use full page drawings
2223EOF
2324    exit 1
2425}
...... 
2627
2728out=-
2829all=false
30p_opt=-p
2931
3032while true; do
3133    case "$1" in
...... 
3436    -o) [ -z "$2" ] && usage
3537    out="$2"
3638    shift 2;;
39    -P) p_opt=-P
40    shift;;
3741    -*) usage;;
3842    *) break;;
3943    esac
...... 
4347
4448eval gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$out -f \
4549  `for n in "$@"; do $all || [ "$n" = "${n/\~/}" ] && \
46  echo "<(fped -p \"$n\" -)"; done`
50  echo "<(fped $p_opt \"$n\" -)"; done`

Archive Download the corresponding diff file

Branches:
master



interactive