Extract ps/wmf/tiff sections from dos eps binary files
2012-03-22 v1.2
The progam dosepsbin analyses an \s-1EPS\s0 file that is not a plain \s-1ASCII\s0 PostScript file but given as \s-1DOS\s0 \s-1EPS\s0 binary file.
dosepsbin [options] <input file>
First it analyzes the input file, validates its header and summarizes the available sections. Depending on the given options, the sections are then written to files.
Options:
--eps-file <file> Write PS section to <file>. --wmf-file <file> Write WMF section to <file>. --tiff-file <file> Write TIFF section to <file>. --inputfile <file> The name of the input file. --verbose Verbose output. --quiet Only errors and warnings are printed. --help Brief help message. --man Full documentation. --version Print version identification.
The files for output must be different from the input file.
\$1
A Encapsulated PostScript (\s-1EPS\s0) file can also given in a special binary format to support the inclusion of a thumbnail. The file format starts with a binary header that contains the positions of the possible sections:
The \s-1PS\s0 section must be present and either the \s-1WMF\s0 file or the \s-1TIFF\s0 file should be given.
The \s-1PS\s0 section is written to <file>. The output file must be different from the input file.
The \s-1WMF\s0 section is written to <file> if present. The output file must be different from the input file.
The \s-1TIFF\s0 section is written to <file> if present. The output file must be different from the input file.
The input file can also be given directly on the command line. If the file does not exist, then the file with extension `.eps' is tried.
Verbose messages.
No messages are printed except for errors and warnings.
Display help screen.
Prints manual page.
Print version identification and exit.
The following command extracts the \s-1PS\s0 section from file test.eps and stores the result in file test-ps.eps:
dosepsbin --eps-file test-ps.eps test.eps
Heiko Oberdiek, email: heiko.oberdiek at googlemail.com
Copyright 2011-2012 by Heiko Oberdiek.
This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself (Perl Artistic License/GNU General Public License, version 2).
The \s-1DOS\s0 \s-1EPS\s0 binary file format is described in section \*(L"5.2 Windows Metafile or \s-1TIFF\s0\*(R":
Adobe Developer Support, Encapsulated PostScript File Format Specification, Version 3.0, 1992-05-01, http://partners.adobe.com/public/developer/en/ps/5002.EPSF_Spec.pdf