comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » PostScript Encapsulation Knowledge
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
PostScript Encapsulation Knowledge [message #89665] Sat, 08 November 2014 09:46 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
Re: PostScript Encapsulation Knowledge [message #89669 is a reply to message #89665] Sun, 09 November 2014 13:58 Go to previous messageGo to next message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
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
Re: PostScript Encapsulation Knowledge [message #89670 is a reply to message #89665] Sun, 09 November 2014 14:56 Go to previous messageGo to next message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
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
Re: PostScript Encapsulation Knowledge [message #89671 is a reply to message #89670] Sun, 09 November 2014 15:31 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to apply a vegetation index on multiple images?
Next Topic: Re: ignoring the strings

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:11:58 PDT 2025

Total time taken to generate the page: 0.00418 seconds