psselect
select pages from a PostScript file
see also :
psbook - pstops - epsffit - psnup - psresize - psmerge - fixscribeps - getafm - fixdlsrps - fixfmps - fixpsditps - fixpspps - fixtpps - fixwfwps - fixwpps - fixwwps - extractres - includeres - showchar
Synopsis
psselect
[ -q ] [ -e ] [ -o ]
[ -r ] [ -ppages ] [
pages ] [ infile [ outfile ] ]
add an example, a script, a trick and tips
examples
source
else
output=$2
fi
psselect -p 2-,1 $1 | pstops
-pb5 "2:0L(1w,0)+1L(1w,0.5h)" |
strippagesize "$bbox" a4 >$output
source
new_bb="0 0 $((2*$w)) $h"
psselect -p 2-,1 $1 | pstops
"2:0+1($w,0)" | strippagesize
"$new_bb" >demo_$output
source
output=$2
fi
psselect -p 2-,1 $1 | psnup -2
-s1 >$output
source
output=$2
fi
psselect -p 2-,1 $1 | pstops
-pb5 "2:0L(1w,0)+1L(1w,0.5h)" |
strippagesize "$bbox" a4 >$output
source
fi
psselect -p1,_ -q $1 | gs -q
-sDEVICE=pdfwrite -sPAPERSIZE=a4 -o $outfile - $2
source
for (( i=14; i<145; i++
))
do
psselect -p$i curie.ps >t.ps
# jpegtopnm $i.jpg >t.pnm
pstopnm -dpi=300 t.ps
pnmcrop -margin=20 t001.ppm >t.ppm
#zip 22761-page-images page-images/*
#psselect -p$i ideen.ps t.ps ; pstopnm
-dpi=600 t.ps ; pnmtotiff t001.ppm >t.tiff; tesseract t.tiff
$i -l deu; echo $i; done
description
Psselect
selects pages from a PostScript document, creating a new
PostScript file. The input PostScript file should follow the
Adobe Document Structuring Conventions.
The
-e option selects all of the even pages; it may
be used in conjunction with the other page selection options
to select the even pages from a range of pages.
The
-o option selects all of the odd pages; it may
be used in conjunction with the other page selection
options.
The
-ppages option specifies the pages which are to
be selected. Pages is a comma separated list of page
ranges, each of which may be a page number, or a page range
of the form first-last. If first is
omitted, the first page is assumed, and if last is
omitted, the last page is assumed.
The prefix
character ’_’ indicates that the page number is
relative to the end of the document, counting backwards. If
just this character with no page number is used, a blank
page will be inserted.
The
-r option causes psselect to output the
selected pages in reverse order.
Psselect
normally prints the page numbers of the pages rearranged;
the -q option suppresses this.
If any of the
-r, -e, or -o options are
specified, the page range must be given with the
-p option. This is for backwards compatibility
with previous versions.
notes
The page number given to psselect is the number of the
page counting from the start or end of the file, starting at one.
The actual page number in the document may be different.
trademarks
PostScript is a trademark of Adobe Systems Incorporated.
bugs
Psselect
does not accept all DSC comments.
see also
psbook ,
psselect, pstops , epsffit , psnup , psresize ,
psmerge , fixscribeps , getafm , fixdlsrps ,
fixfmps , fixpsditps , fixpspps , fixtpps ,
fixwfwps , fixwpps , fixwwps , extractres ,
includeres , showchar
author
Copyright (C)
Angus J. C. Duggan 1991-1995