comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: PostScript Encapsulation Knowledge
items: Re: PostScript Encapsulation Knowledge

PostScript Encapsulation Knowledge
type: item
description: Folks, I've run into an interesting little problem. I have reason to want to know if the current PostScript device configuration is set up to make encapsulated PostScript output or not. I wrote a function that takes the output of the Help, /Device command and parses the information contained in that output to discover the "mode" of encapsulation. Here is the relevant line of output: Mode: Portrait, Non-Encapsulated, EPSI Preview Disabled, Color Enabled The problem is, in IDL 8.3.2 on Windows the encapsulation mode never changes! IDL> Set_Plot, 'PS' IDL> Device, /Encapsulated IDL> Help, /Device Available Graphics Devices: CGM HP METAFILE NULL PCL PRINTER PS WIN Z Current graphics device: PS File: C:\IDL\tester.eps Mode: Portrait, Non-Encapsulated, EPSI Preview Disabled, Color Enabled I've confirmed the PostScript device *creates* an encapsulated PostScript file when I configure the device like this. It just never tells me it is doing so. Is this the case in other versions of IDL, too? Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting, Inc. Coyote's Guide to IDL Programming: http://www.idlcoyote.com/ Sepore ma de ni thue. ("Perhaps thou speakest truth.")
creator: David Fanning
date: 2014-11-08T17:46:09-00:00

Re: PostScript Encapsulation Knowledge
type: item
description: I have IDL 8.2 and get the same results IDL> set_plot, 'ps' IDL> device, /encapsulated IDL> help, /device Available Graphics Devices: CGM HP LJ NULL PCL PRINTER PS REGIS TEK X Z Current graphics device: PS File: <none> Mode: Portrait, Non-Encapsulated, EPSI Preview Disabled, Color Disabled
creator: Matthew Argall
date: 2014-11-09T21:58:54-00:00

Re: PostScript Encapsulation Knowledge
type: item
description: On Saturday, November 8, 2014 6:46:10 PM UTC+1, David Fanning wrote: > Folks, > > I've run into an interesting little problem. I have reason to want to > know if the current PostScript device configuration is set up to make > encapsulated PostScript output or not. > > I wrote a function that takes the output of the Help, /Device command > and parses the information contained in that output to discover the > "mode" of encapsulation. Here is the relevant line of output: > > Mode: Portrait, Non-Encapsulated, EPSI Preview Disabled, Color Enabled > > The problem is, in IDL 8.3.2 on Windows the encapsulation mode never > changes! > > IDL> Set_Plot, 'PS' > IDL> Device, /Encapsulated > IDL> Help, /Device > > Available Graphics Devices: CGM HP METAFILE NULL PCL PRINTER PS WIN Z > Current graphics device: PS > File: C:\IDL\tester.eps > Mode: Portrait, Non-Encapsulated, EPSI Preview Disabled, Color Enabled > > I've confirmed the PostScript device *creates* an encapsulated > PostScript file when I configure the device like this. It just never > tells me it is doing so. > > Is this the case in other versions of IDL, too? > > Cheers, > > David > > -- > David Fanning, Ph.D. > Fanning Software Consulting, Inc. > Coyote's Guide to IDL Programming: http://www.idlcoyote.com/ > Sepore ma de ni thue. ("Perhaps thou speakest truth.") Hi David, you should check the device after opening the file (= after the first plot command): IDL> set_plot, 'ps' IDL> device, /encapsulated IDL> help, /device File: <none> Mode: Portrait, Non-Encapsulated, EPSI Preview Disabled, Color Disabled IDL> plot, dist(5) IDL> help, /device File: idl.ps Mode: Portrait, Encapsulated, EPSI Preview Disabled, Color Disabled regards, Lajos
creator: Lajos Foldy
date: 2014-11-09T22:56:42-00:00

Re: PostScript Encapsulation Knowledge
type: item
description: fawltylanguage@gmail.com writes: > you should check the device after opening the file (= after the first plot command): > > IDL> set_plot, 'ps' > IDL> device, /encapsulated > IDL> help, /device > File: <none> > Mode: Portrait, Non-Encapsulated, EPSI Preview Disabled, Color Disabled > IDL> plot, dist(5) > IDL> help, /device > File: idl.ps > Mode: Portrait, Encapsulated, EPSI Preview Disabled, Color Disabled Yeah, too late by then. :-( Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting, Inc. Coyote's Guide to IDL Programming: http://www.idlcoyote.com/ Sepore ma de ni thue. ("Perhaps thou speakest truth.")
creator: David Fanning
date: 2014-11-09T23:31:42-00:00