1DOSEPSBIN(1) User Contributed Perl Documentation DOSEPSBIN(1)
2
3
4
6 dosepsbin -- Extract PS/WMF/TIFF sections from DOS EPS binary files
7
9 2012-03-22 v1.2
10
12 The progam dosepsbin analyses an EPS file that is not a plain ASCII
13 PostScript file but given as DOS EPS binary file.
14
15 dosepsbin [options] <input file>
16
17 First it analyzes the input file, validates its header and summarizes
18 the available sections. Depending on the given options, the sections
19 are then written to files.
20
21 Options:
22
23 --eps-file <file> Write PS section to <file>.
24 --wmf-file <file> Write WMF section to <file>.
25 --tiff-file <file> Write TIFF section to <file>.
26 --inputfile <file> The name of the input file.
27 --verbose Verbose output.
28 --quiet Only errors and warnings are printed.
29 --help Brief help message.
30 --man Full documentation.
31 --version Print version identification.
32
33 The files for output must be different from the input file.
34
36 DOS EPS Binary File Format
37
38 A Encapsulated PostScript (EPS) file can also given in a special binary
39 format to support the inclusion of a thumbnail. The file format starts
40 with a binary header that contains the positions of the possible sec‐
41 tions:
42
43 * Postscript (PS)
44 * Windows Metafile Format (WMF)
45 * Tag Image File Format (TIFF)
46
47 The PS section must be present and either the WMF file or the TIFF file
48 should be given.
49
51 --eps-file=<file>
52 The PS section is written to <file>. The output file must be dif‐
53 ferent from the input file.
54
55 --wmf-file=<file>
56 The WMF section is written to <file> if present. The output file
57 must be different from the input file.
58
59 --tiff-file=<file>
60 The TIFF section is written to <file> if present. The output file
61 must be different from the input file.
62
63 --inputfile=<file>
64 The input file can also be given directly on the command line. If
65 the file does not exist, then the file with extension `.eps' is
66 tried.
67
68 --verbose
69 Verbose messages.
70
71 --quiet
72 No messages are printed except for errors and warnings.
73
74 --help
75 Display help screen.
76
77 --man
78 Prints manual page.
79
80 --version
81 Print version identification and exit.
82
84 The following command extracts the PS section from file test.eps and
85 stores the result in file test-ps.eps:
86
87 dosepsbin --eps-file test-ps.eps test.eps
88
90 Heiko Oberdiek, email: heiko.oberdiek at googlemail.com
91
93 Copyright 2011-2012 by Heiko Oberdiek.
94
95 This library is free software; you may redistribute it and/or modify it
96 under the same terms as Perl itself (Perl Artistic License/GNU General
97 Public License, version 2).
98
100 The DOS EPS binary file format is described in section "5.2 Windows
101 Metafile or TIFF":
102
103 Adobe Developer Support,
104 Encapsulated PostScript File Format Specification,
105 Version 3.0,
106 1992-05-01,
107 http://partners.adobe.com/public/developer/en/ps/5002.EPSF_Spec.pdf
108
110 2011/11/10 v1.0
111 * First version.
112 2011/12/05 v1.1
113 * Typo fixed in help text (thanks Peter Breitenlohner).
114 2012/03/22 v1.2
115 * Fix in validation test for offset of PS section.
116
117
118
119perl v5.8.1 2012-03-22 v1.2 DOSEPSBIN(1)