bmeps SourceForge.net Logo
Converter from PNG/JPEG/NetPBM to EPS and PDF

Usage

PDF manual "bmeps.pdf" available
german PDF manual "bmepsde.pdf" available
Configuration mechanism
Configuration file location and structure
Configuration entries
Example configuration entry
Command line syntax

Configuration mechanism

Bmeps has too many settings to type them as command line options each time bmeps is started.
On the command line you have to use the ``-l'' option to specify the name of one configuration (a collection of configuration entries). Some configurations are built-in, you can define additional configurations in a configuration file.
A command line option ``-o'' is available to overwrite a configuration entry on the command line.
If no configuration name is specified bmeps searches for a default configuration name previously configured and inspects the EPSOUTPUT environment variable. The EPSOUTPUT environment variable has higher priority than the default configuration name.

Configuration file location and structure

The configuration file is named ${sysconfdir}/bmeps/bmeps.conf on Linux and UNIX systems, ${sysconfdir} is the directory for system configuration data (i.e. /etc or /usr/local/etc). On Windows systems the configuration file is %WINDIR%\bmeps\bmeps.conf.
The file consists of a list of configuration sections, each section describes one configuration.
Each section is started by the configuration name in square brackets. The remainder of the section is a list of key/value pairs one per line.
To create a configuration for a grayscaled PS2-printer we could write the section as follows:

[myprinter:ps2]
color = no
Abbreviations can be used for the configuration entry names. I recommend to write the full names in configuration files for readability. The abbrevitations should be used only when typing commands.

Configuration entries

In this list both the full name and the abbreviation is shown for each command.

Example configuration entry

An example configuration entry might look like this:

[copy_of_ps2]
output type			= ps
level				= 2
interpolate			= yes
color				= yes
multiple data sources		= yes
dsc comments			= yes
encoding			= ascii85:run-length:dct
mix				= yes
background			= 1.0:1.0:1.0
always use default background	= yes
create image mask		= no
image mask trigger level	= 0.000001
transfer alpha channel		= no
showpage			= no
operator dictionary		= yes
separated dictionary		= yes
vmreclaim			= no
draft				= no
jfif sof set			= 0:1
jpeg interpolate		= no
use resolution chunk		= no
# No media size specified -> 1 pixel = 1 PS point
# media size
# No PDF zoom factor, we create PS output
# pdf fit

Command line syntax

The following commands can be used to run bmeps:

The following command line options can occure: