Debian Codegraph @

upstream/debian-unstable/man1/extractres.1

raw
1 .TH EXTRACTRES "1" "2025\-09\-08" "psutils 3.3.14" "User Commands"
2 .SH NAME
3 extractres
4 .SH SYNOPSIS
5 .B extractres
6 [OPTION...] [INFILE [OUTFILE]]
7 .SH DESCRIPTION
8 .PP
9 .B extractres
10 extracts resources (fonts, procsets, patterns, files, etc) appearing in a
11 PostScript document, and puts appropriate
12 .B %%IncludeResource
13 comments in the document prologue.
14 The extracted resources are written to files with the same name as the
15 resource, and an appropriate extension.
16 The pipeline
17 .sp
18 .RS
19 extractres file.ps | includeres >out.ps
20 .RE
21 .sp
22 will move all resources appearing in a document to the document prologue,
23 removing redundant copies.
24 The output file can then be put through page re-arrangement filters such as
25 .B psnup
26 or
27 .B pstops
28 safely.
29 Extract resources from a PostScript document.
30
31 .TP
32 \fBINFILE\fR
33 `\-' or no INFILE argument means standard input
34
35 .TP
36 \fBOUTFILE\fR
37 `\-' or no OUTFILE argument means standard output
38
39 .SH OPTIONS
40 .TP
41 \fB\-m\fR, \fB\-\-merge\fR
42 merge resources of the same name into one file
43 (needed e.g. for fonts output in multiple blocks)
44
45 .TP
46 \fB\-v\fR, \fB\-\-version\fR
47 show program's version number and exit
48
49 .TP
50 \fB\-q\fR, \fB\-\-quiet\fR
51 don't show progress
52
53 .SH AUTHOR
54 .nf
55 .SH BUGS
56 .B extractres
57 does not alter the
58 .B %%DocumentSuppliedResources
59 comments.
60 .fi