SANFACE Software logo

SourceForge

In Association with Amazon.com

HomeNews SPECSTools ExamplesLinks
EPD 2.0 specs

a new encapsulated vectorial graphic format with font support

File Structure

Every line started with % is a Comment Line.
The first line of a EPD file specifies the version number of the EPD.
e.g. %EPD-2.0
At the moment there're 2 versions supported 1.0 (graphic), 2.0 (graphic + fonts).

Every line is one unique command.

The command
%BBox(x1,y1,x2,y2) specifies the Bounding Box of the embedded object
the width is x2-x1
the height is y2-y1

Like PDF (Adobe TradeMark), "the origin is located at the lower-left corner of the output page or display window, with the positive x axis extending horizontally to the right and the positive y axis extending vertically upward, as in standard mathematical practice. The length of a unit along both the x and y axes is 172 inch." (The PDF Reference Manual Version 1.3 second edition page 124 Graphics/User Space): the origin (0,0) is the low left corner.

Now you can use to construct an EPD every command describes in The PDF Reference Manual Version 1.4 second edition in the paragraphs 4.3, 4.4. (Remember to use %BBox command before every PDF graphic command!)

With EPD 2.0 is possible to use these 14 PDF default fonts:

  • /F1 normal Courier
  • /F2 italic Courier
  • /F3 bold Courier
  • /F4 bolditalic Courier
  • /F5 normal Helvetica
  • /F6 italic Helvetica
  • /F7 bold Helvetica
  • /F8 bolditalic Helvetica
  • /F9 normal Times
  • /F10 italic Times
  • /F11 bold Times
  • /F12 bolditalic Times
  • /F13 Symbol
  • /F14 ZapfDingbats
using the syntax The PDF Reference Manual Version 1.4 second edition in the paragraph 5.2
e.g. this is the first part of the postoffice.epd example:
  %EPD-2.0
  % This is an example of a part of a postoffice form
  %BBox(0,0,612,792)
  %grey box
  .9 g
  .9 G
  20 31 572 138 re
  35 350 557 17 re
  394 726 198 44 re
  B
  1 g
  0 G
  ...
  BT
  0 0 0 rg
  /F7 10 Tf
  0 1 -1 0 32 637 Tm
  (Mailer Information) Tj
  0 1 -1 0 32 535 Tm
  (Mailing  Information) Tj
  0 1 -1 0 32 358 Tm
  (Postage Computation \(DMM P013\)) Tj
  0 1 -1 0 32 240 Tm
  (Certification) Tj
  0 1 -1 0 32 60 Tm
  (USPS Use Only) Tj
  ET
  ...
It's very simple with EPD create an archive of graphical objects. We're developing a simple application to use an EPD: epd2svg The official W3C overview of the Scalable Vector Graphics (SVG) format is at http://www.w3.org/Graphics/SVG/
If you need a SVG browser viewer http://www.adobe.com/svg/main.html

We hope many applications will support EPD, to create EPD objects and to include EPD objects in other formats.

HomeNews SPECSTools ExamplesLinks