From: soft-logik@cup.portal.com (Kevin W Davidson)
Newsgroups: comp.archives
Subject: [comp.sys.amiga.applications] Updated DR2D import module for PageStream
Followup-To: comp.sys.amiga.applications
Date: 16 Aug 1992 00:05:28 GMT
Organization: The Portal System (TM)
Distribution: world
NNTP-Posting-Host: soda.berkeley.edu
X-Original-Newsgroups: comp.sys.amiga.applications
X-Original-Date: Fri, 14 Aug 92 21:25:14 PDT

Archive-name: auto/comp.sys.amiga.applications/Updated-DR2D-import-module-for-PageStream

An updated DR2D import module has been placed at the following FTP sites:

  amiga.physik.unizh.ch (incoming)
  hubcap.clemson.edu (graphics.tools)
  wuarchive.wustl.edi (patches)
              ** UPDATED IMPORT MODULE FOR PAGESTREAM2 **
                        
                   DR2D.import  - version 2.1.8

;***************************** Changes **************************
; version 2.1.8 (8/3/92)
;       - fixed another bug relating to the poly-to-line conversion. This one
;         occured when the page was rotated.
;
;
; version 2.1.7 (7/29/92)
;       - fixed a bug when loading DR2D files that have a CNAM chunk without
;         names for all the colors in the cmap. If a color was used that did
;         not have a name, no name was generated for the color.
;
;
; version 2.1.6 (6/3/92)
;       - fixed  a bug when converting poly objects into lines. The lines
;         would sometimes be rotated the wrong direction. This has been 
;         fixed.
;
; version 2.1.5
;
;       - added a version string, so 'version dr2d.import' will return
;         the version number of the module.
;
;       - added font support - if the font specified in the FONS chunk is 
;         available to PageStream it will use it, if not it will use a serif
;         or san-serif font (CSTimes or CSTriumvirate) depanding on the flag 
;         in the FONS chunk.
;
;       - added support for the new CMYK chunk. The module will use the CMYK
;         definition if present, if not it will use the rgb (CMAP) definition
;         for the color values.
;
;       - added support for the new CNAM chunk. The module will use the name
;         from the CNAM chunk if present, otherwise it will construct a name
;         from the CMYK definition if present, if not, it will construct the 
;         name from the rgb (CMAP) definition.
;
;       - fixed a bug that would cause PgS to crash when the object was pasted
;         in some instances. This occured because a CPLY was identified as a 
;         line at the start of the object processing code (it had 2 points) 
;         and not at the end (because it was suppose to be filled).
;
;
; version 2.1.4
;
;       - fixed bug when placing text objects (stxt chunks). Before it would
;         use the baseline as the top of the object, now it uses it as the
;         baseline and calculates the top and bottom of the object using the
;         baseline as a reference.
;
;
; version 2.1.3  (shipped with PgS2.1 12/7/90)
;
;       - now handles different coordinate systems (different zero origin)
;
;
; version 2.1.2
;
;       - fixed color bug that occured when trying to add predefined
;         color with a different name (ie. Black = DR2D000000)
;
;                
; version 2.1.1   (uploaded 11/16/90)
;
;       - fixed bug when first point of the curve is not the same as the
;         prev point.
;
;
; version 2.1.0 (and above needs PgS 2.1.0)
;
;       - added support for group objects
;
;       - added suport for color
;
;       - fixed negative floating point number bug
;
;       - fixed line width - now no longer divides dr2d line width by 100
;
;       - fixed text import bug
;
;       - now detects serif and sanserif text objects
;
;       - fixed bug in poly stuff - changed tdln dection method
;
;
; version 2.0.1
;                               
;       - added supported for CURVETO and MOVETO in same case (0x00000003)
;       
;       - fix bug that caused divide by zero error when an old dr2d file
;         was imported. this was caused by a lack of pprf chunk. this in
;         turn would never set up the conversion factors so they would
;         be zero - hence the divide by zero error!. this has been fixed.
;
;
; version 2.0.0
;       
;       - first release


***************************************************************************



IFF DR2D???  What the heck is that?  IFF DR2D is a new IFF file format for 
2-D Structured Drawings (as opposed to bitmap drawings).

IFF DR2D is currently used by ProVector to store it's files.

With version 2.0 of the OS the "version" command has gained some new talents.
Whereas it used to only work on libraries, it now works on any file. It will
look for a "version string" inside a file and print it out to the CLI if it
finds it.  A "version string" has been added to many of the new import modules.
This makes it very easy to find out what version of the import module you have.
From a CLI just type "version <module name>" and press return. You no longer
have to load up PageStream and look at the import requester for the version
number.

As with all the modules, if you come across some pictures that will not load
or crash when importing, please upload them to our BBS or mail them to us on
a floppy disk with an explaination of the problem. We will try them and fix
the import module if appropriate.


Thank you,


Gary Knight
Soft-Logik Publishing Corp.