.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.13. .TH EXTRACTRES "1" "December 2021" "extractres 2.08" "User Commands" .SH NAME extractres - extract resources from a PostScript document .SH SYNOPSIS .B extractres [\fI\,OPTION\/\fR...] [\fI\,INFILE \/\fR[\fI\,OUTFILE\/\fR]] .SH DESCRIPTION Extract resources from a PostScript document. .TP \fB\-m\fR, \fB\-\-merge\fR merge resources of the same name into one file (needed e.g. for fonts output in multiple blocks) .TP \fB\-\-help\fR display this help and exit .TP \fB\-\-version\fR display version information and exit .PP .B extractres extracts resources (fonts, procsets, patterns, files, etc) appearing in a PostScript document, and puts appropriate .B %%IncludeResource comments in the document prologue. The extracted resources are written to files with the same name as the resource, and an appropriate extension. The pipeline .sp .RS extractres file.ps | includeres >out.ps .RE .sp will move all resources appearing in a document to the document prologue, removing redundant copies. The output file can then be put through page re-arrangement filters such as .B psnup or .B pstops safely. .SS "Exit status:" .TP 0 if OK, .TP 1 if arguments or options are incorrect, or there is some other problem starting up, .TP 2 if there is some problem during processing, typically an error reading or writing an input or output file. .SH AUTHOR Written by Angus J. C. Duggan and Reuben Thomas. .SH BUGS .B extractres does not alter the .B %%DocumentSuppliedResources comments. .SH COPYRIGHT Copyright \(co Reuben Thomas 2012\-2019. .br Copyright \(co Angus J. C. Duggan 1991\-1997. .SH TRADEMARKS .B PostScript is a trademark of Adobe Systems Incorporated. .SH "SEE ALSO" .BR psutils (1), .BR paper (1)