[comp.sys.apollo] Piced PMF to Postscript

srv@philabs.philips.com (Sreeram Venkit) (11/09/89)

  I am trying to convert a 'PicED MetaFile (PMF)' into a postscript file
  so that it can be printed on our available laser printer. The above PMF
  is an ascii file output from a Mentor Graphics software called PicED
  and is supposed to closely resemble postscript page description language.
  The file has to be preceded by a prologue that defines the PMF primitives
  in terms of postscript primitives. Has anybody done this? 

    According to the PicED manual, the syntactic constructs, delimiters
    and escape sequences in PMF are identical to postscript. Given this
    how difficult would it be to write this prologue part?

 Any pointers, suggestions etc. will be greatly appreciated. I just happened  
 to get involved in the above problem and normally don't read these
 newsgroups. So please send your replies to 'srv@philabs.philips.com'

  Thanks in advance.

  Sreeram
  (srv@philabs.philips.com)

srv@philabs.philips.com (Sreeraman Venkitasubrahamanian) (11/09/89)

  I am trying to convert a 'PicED MetaFile (PMF)' into a postscript file
  so that it can be printed on our available laser printer. The above PMF
  is an ascii file output from a Mentor Graphics software called PicED
  and is supposed to closely resemble postscript page description language.
  The file has to be preceded by a prologue that defines the PMF primitives
  in terms of postscript primitives. Has anybody done this? 

    According to the PicED manual, "the syntactic constructs, delimiters
    and escape sequences in PMF are identical to postscript". Given this
    how difficult would it be to write this prologue part?

 The purpose is to print a mentor picture file on an unconnected laser
 printer. (We don't have the server for the Apollo). Is  there is any other
 way of doing this? I know that the mentor software can output picture files
 in a format called TIF. Can this be converted to PS?

 Any pointers, suggestions etc. will be greatly appreciated. I just happened  
 to get involved in the above problem and normally don't read these
 newsgroups. So please send your replies to 'srv@philabs.philips.com'

  Thanks in advance.

  Sreeram
  (srv@philabs.philips.com)

keil@apollo.HP.COM (Mark Keil) (11/10/89)

In article <67617@philabs.Philips.Com> srv@philabs.philips.com (Sreeram Venkit) writes:
> 
>   I am trying to convert a 'PicED MetaFile (PMF)' into a postscript file
>   so that it can be printed on our available laser printer. The above PMF
>   is an ascii file output from a Mentor Graphics software called PicED
>   and is supposed to closely resemble postscript page description language.
>   The file has to be preceded by a prologue that defines the PMF primitives
>   in terms of postscript primitives. Has anybody done this? 
> 
>     According to the PicED manual, the syntactic constructs, delimiters
>     and escape sequences in PMF are identical to postscript. Given this
>     how difficult would it be to write this prologue part?
> 
>  Any pointers, suggestions etc. will be greatly appreciated. I just happened  
>  to get involved in the above problem and normally don't read these
>  newsgroups. So please send your replies to 'srv@philabs.philips.com'
> 
>   Thanks in advance.
> 
>   Sreeram
>   (srv@philabs.philips.com)

I have not used PicED, but I have used neted, so what I suggest is based
on outputting neted sheets to postscript.

If you have & run the laser plot/printer server, set up another plot server
process in offline postscript mode. Set it up to print to some fake device name.
Then plot (or print) to the new pseudo device. The output will be to a file which
will sit there. You can then look in that file, and get the prolog that is prepended
to the output. That may well work right off. If nothing else, it should get you
closer to what you want.

Below is the config file (mpa.config) that I use for an A size pseudo printer.
I call the printer mpa (for mentor pseudo A)

To plot Neted sheets, I say something like: plot -pr mpa circut
 I then look for xpa.test.fcaa.0.userid.circut.sheet1 in /sys/print



#  MENTOR  A size postscript print server config file

DEVICE              POSTSCRIPT
INTERFACE           OFFLINE
PRINTER_NAME        MPA
FILE_BANNERS        ON
MODEL_NUMBER        generic_ps
PAPER               letter
OUTPUT_PREFIX       xpa.test
             
#    Following parameters are applicable to 'language printer' files:

BOTTOM_MARGIN      0
FORM_LENGTH        66
FORM_WIDTH         80
LEFT_MARGIN        0
PAGE_HEADERS       OFF
TOP_MARGIN         0


I hope that this helps,  Mark

 Mark Keil               Apollo Computer,  Chelmsford MA 01824
 +1 508-256-6600 x2495   keil@apollo.com  /  {decvax,mit-erl,yale}!apollo!keil